www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15569] New: Implicit fall-through does not cause an error


          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 puremagic.com
          Reporter: j 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

Known versions affected: DMD 2.069

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

Jan 15 2016