digitalmars.D.bugs - [Issue 399] New: -w misses unreacheable "case" statement
- d-bugmail puremagic.com (35/35) Oct 04 2006 http://d.puremagic.com/issues/show_bug.cgi?id=399
- BCS (3/29) Oct 04 2006 given $test a b
- d-bugmail puremagic.com (13/13) Oct 04 2006 http://d.puremagic.com/issues/show_bug.cgi?id=399
- d-bugmail puremagic.com (4/4) Oct 04 2006 http://d.puremagic.com/issues/show_bug.cgi?id=399
http://d.puremagic.com/issues/show_bug.cgi?id=399
Summary: -w misses unreacheable "case" statement
Product: D
Version: 0.168
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: diagnostic
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla digitalmars.com
ReportedBy: thomas-dloop kuehne.cn
"dmd -w test.d" fails to report lines 14 to 16 as unreachable.
--
Oct 04 2006
"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??
Oct 04 2006
http://d.puremagic.com/issues/show_bug.cgi?id=399
bugzilla digitalmars.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
Compiling and running the sample:
dmd test
test a b
gives the output:
case 3 (statement is not reachable)
--
Oct 04 2006
http://d.puremagic.com/issues/show_bug.cgi?id=399 Sorry for confusing non-D and D grammar. --
Oct 04 2006









BCS <BCS pathlink.com> 