www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [Semi-OT] newCTFE debugging woes

Hi Guys,
I just found and worked around a bug in newCTFE.

The tests only showed iasm64.d failing.
And iasm64.d test does not execute ctfe.
On top of that I could not reproduce the failure locally.
I was pretty befuddled.
After two weeks of being confused:

It turned out a bug in newCTFE caused dmd to mis-compile itself.

The following video shows me working around that bug:
https://www.youtube.com/watch?v=gJWx0tgWb8E&feature=youtu.be

Comments welcome.
May 28