CTFE Status

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Sat Dec 3 15:30:58 PST 2016


Another bug in continue break handling has appeared.

uint fn() {
   for (;;)
   {
     if (true) break;
     return 0;
   }
   return 1;
}

static assert(fn());

The above code is enough to trigger it.
Apparently the fixup jump for the break is never inserted.
I doubt that this is an off-by-one error again.

It's going to be tricky.


More information about the Digitalmars-d mailing list