From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Re: Elaboration circularity with generics
Date: Sun, 15 Jan 2012 09:43:34 -0800 (PST)
Date: 2012-01-15T09:43:34-08:00 [thread overview]
Message-ID: <9b4cad32-89fc-44f2-b760-5604d7cb5a5e@o12g2000vbd.googlegroups.com> (raw)
In-Reply-To: 9e273746-1663-4fef-9154-f37a25d3c01b@o13g2000vbf.googlegroups.com
On 15 Jan., 18:15, Maciej Sobczak <see.my.homep...@gmail.com> 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.
next prev parent reply other threads:[~2012-01-15 17:43 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-14 15:09 Elaboration circularity with generics Maciej Sobczak
2012-01-14 16:13 ` Martin Dowie
2012-01-14 16:17 ` AdaMagica
2012-01-14 22:46 ` Simon Wright
2012-01-15 16:55 ` AdaMagica
2012-01-16 15:09 ` Simon Wright
2012-01-16 17:15 ` AdaMagica
2012-01-14 16:26 ` AdaMagica
2012-01-14 22:01 ` Georg Bauhaus
2012-01-15 17:15 ` Maciej Sobczak
2012-01-15 17:43 ` AdaMagica [this message]
2012-01-16 17:02 ` Adam Beneschan
2012-01-16 14:34 ` Robert A Duff
2012-01-16 21:29 ` Maciej Sobczak
2012-01-16 21:52 ` Adam Beneschan
2012-01-16 22:25 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox