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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,64fe8f87aae99538 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!postnews.google.com!d62g2000hsf.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: How to return an empty aggregate Date: Wed, 2 Apr 2008 00:16:40 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1b719cda-38d9-43a0-b4b0-70f502cd2b4b@d62g2000hsf.googlegroups.com> References: <69046060-8641-4e6b-95a9-232c6a8059ba@e6g2000prf.googlegroups.com> <7a936089-270d-4ac2-9d7f-ec39ef3e96ef@s19g2000prg.googlegroups.com> NNTP-Posting-Host: 128.141.45.242 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1207120601 9732 127.0.0.1 (2 Apr 2008 07:16:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 2 Apr 2008 07:16:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d62g2000hsf.googlegroups.com; posting-host=128.141.45.242; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20749 Date: 2008-04-02T00:16:40-07:00 List-Id: On 1 Kwi, 19:18, Adam Beneschan wrote: > As far as I can tell, what Maciej is trying to do is perfectly fine, > there aren't any language corners that would cause a problem, and the > compiler is misbehaving. Looks like this is related to my previous bug report. The smallest test case I've found is: procedure A is type Base_1 is interface; type Base_2 is interface; type Middle is Interface and Base_1 and Base_2; type Derived is new Middle with null record; function Make_Derived return Derived is begin return Derived' (others => <>); end Make_Derived; D : Base_1'Class := Make_Derived; begin null; end; This compiles and runs fine. After changing the order of progenitors in the definition of Middle (or changing the type of D to Base_2'Class) the program still compiles, but fails with segfault at runtime - this, however, takes a couple of seconds. Time for another entry in bugzilla. -- Maciej Sobczak * www.msobczak.com * www.inspirel.com