[Issue 18605] False unreachable warning generated when labeled continue is used

2018-03-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18605 --- Comment #2 from Yuxuan Shui --- Reduced a bit more: auto test(T...)() { L:foreach(_; T) { continue L; return 1; } } void main() @safe { import std.stdio : writeln;

[Issue 18605] False unreachable warning generated when labeled continue is used

2018-03-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18605 --- Comment #1 from Yuxuan Shui --- This bug is worse than I thought: auto test(T...)(int t) pure { L:foreach(_; T) { if (t) continue L; return 1; } } void main() @safe { import std.stdio