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: [email protected]
          Reporter: [email protected]

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.

--

Reply via email to