From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 3A77BBC69 for ; Wed, 25 Apr 2007 15:24:59 +0200 (CEST) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.229]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l3PDOvnE019271 for ; Wed, 25 Apr 2007 15:24:58 +0200 Received: by wr-out-0506.google.com with SMTP id 69so221654wra for ; Wed, 25 Apr 2007 06:24:56 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=EYFt6c6MN3W1tHIjjoPYEaHFHP+QXdohwHdO6yAYs2YMG/YDSBXJmlJgMDp+Jo2DuPGxw5kay0XH4eCsX3M589zIV1AHRFMB+3ccdf1+PXvc6xLlsYceYhUMWw9OSwaNFYJCnTaE28LH811SwaG8y0Ml6tTUrJh+A1P5qlsH2is= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=udO10oz0egO4LkxaBjZjjA0lG+VdqWIfM4VtjdzhEUm+9EIwk2eDOk3Zczz0ed38aMIu5XZjaWiQ8EbD84uKEe80R53rJhdrasagu9+XWbBTpMHKkr4HJ6QeGq5NoSxLyA4VK5fJ+Vh9yan/INEYe1P66fLRvaIxBqO2CC7L50I= Received: by 10.114.202.15 with SMTP id z15mr187911waf.1177507496342; Wed, 25 Apr 2007 06:24:56 -0700 (PDT) Received: by 10.115.46.14 with HTTP; Wed, 25 Apr 2007 06:24:56 -0700 (PDT) Message-ID: <180a05860704250624jc0fb974wd1c6ee7b64e93d23@mail.gmail.com> Date: Wed, 25 Apr 2007 09:24:56 -0400 From: "Craig Falls" To: caml-list@yquem.inria.fr Subject: possible infinite loop in compiler MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-j-chkmail-Score: MSGID : 462F56A9.002 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 462F56A9.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; compiler:01 stack:01 ocamlc:01 ocamlopt:01 foo:01 sig:01 foo:01 struct:01 sig:01 struct:01 mismatch:01 constraint:01 constraint:01 modules:02 match:02 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 ]