[Issue 15569] New: Implicit fall-through does not cause an error

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jan 15 14:23:08 PST 2016


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

          Issue ID: 15569
           Summary: Implicit fall-through does not cause an error
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: j at kedrahos.com

Created attachment 1574
  --> https://issues.dlang.org/attachment.cgi?id=1574&action=edit
Example code

Example code attached.

C-Style implicit fall-through should be an error. The attached file compiles
successfully (it shouldn't) and behaves exactly like C/C++ with implicit
fall-through.

Known versions affected: DMD 2.069

It even compiles and runs on the interactive compiler at dlang.org.

--


More information about the Digitalmars-d-bugs mailing list