CTFE Status
Stefan Koch via Digitalmars-d
digitalmars-d at puremagic.com
Tue Nov 29 15:00:08 PST 2016
On Monday, 28 November 2016 at 17:02:37 UTC, Stefan Koch wrote:
> On Friday, 25 November 2016 at 10:53:50 UTC, Stefan Koch wrote:
>
> I discovered a nasty bug in goto handling.
> I am working on fixed it;
> This could take a while, since it likely requires structural
> changes.
I fixed a bug in continue break handling.
The dreaded structural changes for this were easier then expected.
Perhaps fixing the goto-handling will be as straight-forward ?
The following code compiles now:
int bug4448()
{
int n = 2;
L1:
do
{
switch(n)
{
case 5:
return 7;
default:
n = 5;
break L1;
return n;
}
int w = 7;
} while (0);
return 3;
}
static assert(bug4448() == 3);
More information about the Digitalmars-d
mailing list