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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5f9c25380ec58962 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.190.99 with SMTP id gp3mr3633753pbc.1.1326557846192; Sat, 14 Jan 2012 08:17:26 -0800 (PST) Path: lh20ni181683pbb.0!nntp.google.com!news2.google.com!postnews.google.com!g27g2000yqa.googlegroups.com!not-for-mail From: AdaMagica Newsgroups: comp.lang.ada Subject: Re: Elaboration circularity with generics Date: Sat, 14 Jan 2012 08:17:25 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <583b1bfe-95bd-4669-b16b-c733c81e8f88@w4g2000vbc.googlegroups.com> NNTP-Posting-Host: 91.7.67.147 Mime-Version: 1.0 X-Trace: posting.google.com 1326557846 15920 127.0.0.1 (14 Jan 2012 16:17:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 14 Jan 2012 16:17:26 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g27g2000yqa.googlegroups.com; posting-host=91.7.67.147; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.0; rv:8.0.1) Gecko/20100101 Firefox/8.0.1,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-01-14T08:17:25-08:00 List-Id: A unit can only be instantiated if it is fully elaborated. I guess GNAT chose the elaboration order P'Spec, P.Q'Spec, P'Body (crash since P.Q'body is not elaborated). This dependence is not present for nongeneric units. Perhaps addition of pragma Elaborate_Body to P.Q helps.