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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 13 15:42:36 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18605

--- Comment #2 from Yuxuan Shui <yshuiv7 at gmail.com> ---
Reduced a bit more:

auto test(T...)() {
        L:foreach(_; T) {
                continue L;
                return 1;
        }
}

void main() @safe {
        import std.stdio : writeln;
        writeln(test!(1,2,3)());
}

--


More information about the Digitalmars-d-bugs mailing list