CTFE Status

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Fri Dec 16 10:00:10 PST 2016


On Friday, 16 December 2016 at 10:33:32 UTC, Stefan Koch wrote:
> On Friday, 16 December 2016 at 10:26:15 UTC, Stefan Koch wrote:
>> On Friday, 16 December 2016 at 09:32:13 UTC, Stefan Koch wrote:
>>> Hey Guys bad news, Regressions.
>>> The handling of default constructed Struct-Literals inside of 
>>> newCTFE is broken.
>>>
>>> I have no idea were this came from all of a sudden.
>>> I was in crunch-mode to get the phobos unittest to compile, I 
>>> don't remember the last 72 hours at all :)
>>> So it might take a while until the regression is resolved.
>>> I apologize for the inconvenience.
>>
>> Apparently the regression was introduce in
>> I confirmed that the regression was introduced in
>> https://github.com/dlang/dmd/pull/6186/commits/33dbf5aee7d42b1929fd62ef176bd299c4da8ac5
>>
>> Which suggests that it only worked by chance before :(
>
> It's confirmed.
> The test was not thorough enough.
> The gist with the current newCTFE compatible code with  was 
> updated.
> https://gist.github.com/UplinkCoder/89faa06311e417aa93ea99bc92934d3e

Another bug is going to be fixed soon, causing infinite recursion 
on structs that have pointer of their own type.
This will allow me to remove a few bail-outs and compile more of 
phobos.


More information about the Digitalmars-d mailing list