[Issue 16176] New: Unreachable code not detected with -w

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jun 15 03:18:34 PDT 2016


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 at puremagic.com
          Reporter: bugzilla at digitalmars.com

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

--


More information about the Digitalmars-d-bugs mailing list