[Bug 82] New: incorrect statement is not reachable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Apr 2 23:06:51 PDT 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=82
Summary: incorrect statement is not reachable
Product: D
Version: 0.150
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: lane at downstairspeople.org
+++ This bug was initially created as a clone of Bug #81 +++
======= example.d =======
module example;
import std.c.stdio, std.string;
void foo() {
printf( toStringz( "foo!" ) );
}
void bar() {
printf( toStringz( "bar!" ) );
}
void main( char[][] args ) {
switch( args[1] ) {
debug {
case "--foo":
case "-f":
foo();
break;
}
version( bar ) {
case "--bar":
case "-b":
bar();
break;
}
default:
foo();
bar();
break;
}
}
======== ========
lane at wookies:~$ ./dmd/bin/dmd -debug -version=bar -w example.d
warning - example.d(21): statement is not reachable
--
More information about the Digitalmars-d-bugs
mailing list