digitalmars.D.bugs - [Bug 82] New: incorrect statement is not reachable
- d-bugmail puremagic.com (46/46) Apr 02 2006 http://d.puremagic.com/bugzilla/show_bug.cgi?id=82
- d-bugmail puremagic.com (4/4) Apr 02 2006 http://d.puremagic.com/bugzilla/show_bug.cgi?id=82
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 digitalmars.com
ReportedBy: lane downstairspeople.org
======= 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 wookies:~$ ./dmd/bin/dmd -debug -version=bar -w example.d
warning - example.d(21): statement is not reachable
--
Apr 02 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=82 *** Bug 81 has been marked as a duplicate of this bug. *** --
Apr 02 2006








d-bugmail puremagic.com