From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ee82e0a06c8bbead X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.202.37 with SMTP id kf5mr1077719pbc.7.1333799680733; Sat, 07 Apr 2012 04:54:40 -0700 (PDT) Path: r9ni28828pbh.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: A Gnother Gnasty bug Date: Sat, 07 Apr 2012 12:54:38 +0100 Organization: A noiseless patient Spider Message-ID: References: <22193583.1528.1333759470339.JavaMail.geo-discussion-forums@vbdn7> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="18790"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kehkGg9Gs7k9YpqiEoOHraBN6+O+gR9E=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:Ovc6vJEH85PnftaWJ8BeZMJL5/s= sha1:35wsor45TOCGvfHXP3r4q121R7M= Content-Type: text/plain; charset=us-ascii Date: 2012-04-07T12:54:38+01:00 List-Id: I don't think you needed all those levels to trigger the bug (and bug I think it is, though the code is very very complex): s : I_Ptr := I_Ptr'(new I'class'(F(arg=> 42))); t : K := G(p_i => s); <--- this is OK u : K := G(p_i => I_Ptr' (new I'class' <--- Constraint_Error here (F(arg=> 42))));