LDC 0.15.1 released!
Kai Nacke via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Tue Dec 16 03:40:25 PST 2014
On Tuesday, 16 December 2014 at 09:11:31 UTC, Daniel N wrote:
> On Tuesday, 16 December 2014 at 05:57:41 UTC, Kai Nacke wrote:
>> On Tuesday, 16 December 2014 at 05:39:54 UTC, Kai Nacke wrote:
>>>
>>> Thanks for the test case. It does not work if you try to
>>> compile with ldc2, too.
>>
>> The compiler dies while the code generation for the main
>> function runs. Mysterious. Really good catch.
>>
>> Regards,
>> Kai
>
> As an exercise in learning ldc, I ran it through the debugger.
>
> If I remove the gagging from:
> \gen\toir.cpp @ 2823
>
> Then the following error is made visible.
> Error: expression '[cast(E4)0:(Bar __ctmp1495 = 0;
> , __ctmp1495).this(cast(E4)1, cast(E3)1)]' is not a constant
>
> While gagged we call void
> AggrTypeBuilder::addAggregate(AggregateDeclaration *ad) in
> \ir\irtypeaggr.cpp which invokes fatal() at line 141.
:-) Nice. There's a logical flaw with gagging errors.
Regards,
Kai
More information about the digitalmars-d-ldc
mailing list