[Issue 399] New: -w misses unreacheable "case" statement
BCS
BCS at pathlink.com
Wed Oct 4 11:57:57 PDT 2006
>
>
> # import std.stdio;
> #
> # int main(char[][] args){
> # switch(args.length){
> # case 2:
> # writefln("case 2");
> # goto case 1000;
> # default:
> # writefln("default");
> # break;
> # case 1000:
> # writefln("case 1000 (reachable)");
> # break;
> # case 3: // line 14
> # writefln("case 3 (statement is not reachable)");
> # break;
> # }
> #
> # return 0;
> # }
>
> "dmd -w test.d" fails to report lines 14 to 16 as unreachable.
>
>
given $test a b
args.length == 3
Or am I missing something??
More information about the Digitalmars-d-bugs
mailing list