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.197.100 with SMTP id it4mr5707448pbc.5.1326649415171; Sun, 15 Jan 2012 09:43:35 -0800 (PST) Path: lh20ni185620pbb.0!nntp.google.com!news2.google.com!postnews.google.com!o12g2000vbd.googlegroups.com!not-for-mail From: AdaMagica Newsgroups: comp.lang.ada Subject: Re: Elaboration circularity with generics Date: Sun, 15 Jan 2012 09:43:34 -0800 (PST) Organization: http://groups.google.com Message-ID: <9b4cad32-89fc-44f2-b760-5604d7cb5a5e@o12g2000vbd.googlegroups.com> References: <583b1bfe-95bd-4669-b16b-c733c81e8f88@w4g2000vbc.googlegroups.com> <1007811599348271064.048391rm-host.bauhaus-maps.arcor.de@news.arcor.de> <9e273746-1663-4fef-9154-f37a25d3c01b@o13g2000vbf.googlegroups.com> NNTP-Posting-Host: 91.7.67.241 Mime-Version: 1.0 X-Trace: posting.google.com 1326649415 9092 127.0.0.1 (15 Jan 2012 17:43:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 15 Jan 2012 17:43:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o12g2000vbd.googlegroups.com; posting-host=91.7.67.241; 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:9.0.1) Gecko/20100101 Firefox/9.0.1,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-01-15T09:43:34-08:00 List-Id: On 15 Jan., 18:15, Maciej Sobczak wrote: > In such a case I would consider it to be a compiler bug. No, this isn't a bug. The elaboration order is not completely defined. If the compiler cannot find a valid order, it may reject the program. The programmer then has to help the compiler with pragmas. A compiler is not required to try out all sorts of elaboration orders. This is for simplifying the compiler. There are about O(n!) orders.