From: "Craig Falls" <cfalls@gmail.com>
To: caml-list@yquem.inria.fr
Subject: possible infinite loop in compiler
Date: Wed, 25 Apr 2007 09:24:56 -0400 [thread overview]
Message-ID: <180a05860704250624jc0fb974wd1c6ee7b64e93d23@mail.gmail.com> (raw)
The following code blows the stack in ocamlc and ocamlopt 3.09.3:
module Foo : sig
type 'a t = private 'a constraint 'a = [< `foo ]
end = struct
type 'a t = 'a constraint 'a = [< `foo ]
end
Other row types such as [> `foo ] also cause the error. The following
version returns a confusing (to me) error message:
module Foo : sig
type 'a t = private 'a constraint 'a = [< `foo ]
end = struct
type 'a t = private 'a constraint 'a = [< `foo ]
end
Signature mismatch:
Modules do not match:
sig type 'a t = private 'a constraint 'a = [< `foo ] end
is not included in
sig type 'a t = private 'a constraint 'a = [< `foo ] end
Type declarations do not match:
type 'a t = private 'a constraint 'a = [< `foo ]
is not included in
type 'a t constraint 'a = [< `foo ]
next reply other threads:[~2007-04-25 13:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-25 13:24 Craig Falls [this message]
2007-04-25 23:49 ` [Caml-list] " Jon Harrop
2007-04-26 0:16 ` Jacques Garrigue
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=180a05860704250624jc0fb974wd1c6ee7b64e93d23@mail.gmail.com \
--to=cfalls@gmail.com \
--cc=caml-list@yquem.inria.fr \
/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