[dmd-beta] dmd 1.074 and 2.059 beta 5

Walter Bright walter at digitalmars.com
Wed Apr 11 10:51:14 PDT 2012



On 4/11/2012 8:04 AM, David Nadlinger wrote:
> On 10 Apr 2012, at 19:09, Walter Bright wrote:
>> http://d.puremagic.com/issues/show_bug.cgi?id=7815
>>
>> Anyone want to have a go at reducing this one?
>
> The regression is caused by commit b1031a0 [1], reverting it allows the full 
> SciD test case to build (also see the reduced test case I posted to Bugzilla). 
> I am not sure how to fix the problem without breaking some parts of 4269 again 
> – Don?
>

All though Don's patch exposed the problem, it is not a bug in Don's patch. The 
problem, as I explained in

http://d.puremagic.com/issues/show_bug.cgi?id=7815

is, once again, a circular eponymous template expansion, where the compiler 
cannot figure out if it is eponymous or not because the static if adds members, 
but the static if depends on the members already being there.

So, I think it is a problem with the example, not the compiler. Though the error 
message is *terrible*, I will try to fix that.


More information about the dmd-beta mailing list