Bug 82 – incorrect statement is not reachable

Status
RESOLVED
Resolution
WORKSFORME
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-04-03T01:06:00Z
Last change time
2014-02-15T02:10:08Z
Assigned to
bugzilla
Creator
lane

Comments

Comment #0 by lane — 2006-04-03T01:06:50Z
+++ 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@wookies:~$ ./dmd/bin/dmd -debug -version=bar -w example.d warning - example.d(21): statement is not reachable
Comment #1 by lane — 2006-04-03T01:07:52Z
*** Bug 81 has been marked as a duplicate of this bug. ***
Comment #2 by bugzilla — 2006-06-18T02:26:45Z
Works with DMD 0.160.