From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: micha-1@fantasymail.de
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] ocamlc throws exception
Date: Tue, 20 Sep 2005 13:24:05 +0900 (JST) [thread overview]
Message-ID: <20050920.132405.25911109.garrigue@math.nagoya-u.ac.jp> (raw)
In-Reply-To: <20050920.101006.96686870.garrigue@math.nagoya-u.ac.jp>
From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
> From: Michael Wohlwend <micha-1@fantasymail.de>
> > that code :
> [..]
> > causes this exception:
> > Fatal error: exception Ctype.Unify(_, 0)
> > (Program not linked with -g, cannot print stack backtrace)
>
> This should be a bug report :-)
> Indeed, the problem seems to be still there on the 3.08 branch after
> 3.08.4.
> On the other, this bug does not appear on the 3.09 branch.
The last sentence is wrong: this bug is common to all versions.
The fix is simple enough, and is already in CVS.
You just have to replace the definition of hide_private_methods in
typing/ctype.ml by
let hide_private_methods ty =
match (repr ty).desc with
Tobject (fi, nm) ->
nm := None;
let (fl, _) = flatten_fields fi in
List.iter
(function (_, k, _) ->
match field_kind_repr k with
Fvar r -> set_kind r Fabsent
| _ -> ())
fl
| _ ->
assert false
Jacques Garrigue
prev parent reply other threads:[~2005-09-20 4:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-19 12:07 Michael Wohlwend
2005-09-20 1:10 ` [Caml-list] " Jacques Garrigue
2005-09-20 4:24 ` Jacques Garrigue [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050920.132405.25911109.garrigue@math.nagoya-u.ac.jp \
--to=garrigue@math.nagoya-u.ac.jp \
--cc=caml-list@yquem.inria.fr \
--cc=micha-1@fantasymail.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox