Bug 16176 – Unreachable code not detected with -w

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-06-15T10:18:34Z
Last change time
2024-12-13T18:48:29Z
Keywords
pull
Assigned to
No Owner
Creator
Walter Bright
Moved to GitHub: dmd#19145 →

Comments

Comment #0 by bugzilla — 2016-06-15T10:18:34Z
void main () { char ch = '!'; switch (ch) { ch = 'a'; // unreachable code case '!': break; default: } }
Comment #1 by bugzilla — 2016-06-15T10:24:46Z
Comment #2 by schveiguy — 2023-11-14T17:17:58Z
The unreachable code warning has been removed. https://github.com/dlang/dmd/pull/15568 Should we close this?
Comment #3 by robert.schadek — 2024-12-13T18:48:29Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19145 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB