Bug 15569 – Implicit fall-through does not cause an error

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-01-15T22:23:00Z
Last change time
2016-01-15T22:24:22Z
Assigned to
nobody
Creator
j

Attachments

IDFilenameSummaryContent-TypeSize
1574switch.dExample codetext/x-dsrc221

Comments

Comment #0 by j — 2016-01-15T22:23:08Z
Created attachment 1574 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.
Comment #1 by j — 2016-01-15T22:24:22Z
Found issue 14411, which is a duplicate. *** This issue has been marked as a duplicate of issue 14411 ***