caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gabriel Scherer <gabriel.scherer@gmail.com>
To: Kaspar Rohrer <kaspar.rohrer@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Typing error results in fatal error.
Date: Mon, 8 Apr 2013 13:16:50 +0200	[thread overview]
Message-ID: <CAPFanBEwkodhsa2VKL-YdPE3dOqRdfp9dnw9cPyJzKbm1A2Hww@mail.gmail.com> (raw)
In-Reply-To: <21DFEED9-A48F-4CDE-89E9-7BE1CA207B97@gmail.com>

This was a bug in the type-checker. It has already been reported by
Julien Signoles and fixed by Jacques Garrigue,
  http://caml.inria.fr/mantis/view.php?id=5858
The fix will be available in the next OCaml release.

"Fatal error" from the compiler are indications of bugs, and you
should not hesitate to use the bugtracker interface (
caml.inria.fr/mantis/ ) to report them.
(It's useful to first look for duplicates, or try them in a
bleeding-edge version to see if they have already been fixed.)

Thanks for the report.

On Mon, Apr 8, 2013 at 1:06 PM, Kaspar Rohrer <kaspar.rohrer@gmail.com> wrote:
> Hi list
>
> Is there a reason why the following code
>
>> class type a = object inherit a end
>
>  (in OCaml 4.00.1, at least) results in a
>
>> Fatal error: exception Assert_failure("typing/env.ml", 629, 54)
>
> in either the toplevel or the compiler, instead of a simple typing error?
>
> Just curious.
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs

      reply	other threads:[~2013-04-08 11:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-08 11:06 Kaspar Rohrer
2013-04-08 11:16 ` Gabriel Scherer [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=CAPFanBEwkodhsa2VKL-YdPE3dOqRdfp9dnw9cPyJzKbm1A2Hww@mail.gmail.com \
    --to=gabriel.scherer@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=kaspar.rohrer@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).