Comment #0 by bearophile_hugs — 2014-08-18T14:26:46Z
Reduced from a post by nrgyzer:
struct Foo {
this(int) {}
}
void main(string[] args) {
Foo x;
if (args.length > 1)
goto EXIT;
x = Foo(1);
EXIT:
}
2.067alpha gives an error message that I think is spurious (rejects-valid):
test.d(7,9): Error: goto skips declaration of variable test.main.__ctmp1 at test.d(8,12)
Comment #1 by dlang-bugzilla — 2014-08-18T23:20:01Z