www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16176] New: Unreachable code not detected with -w

https://issues.dlang.org/show_bug.cgi?id=16176

          Issue ID: 16176
           Summary: Unreachable code not detected with -w
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: bugzilla digitalmars.com

void main () {
    char ch = '!';
    switch (ch) {
      ch = 'a';           // unreachable code
      case '!': break;
      default:
    }
  }

--
Jun 15 2016