D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 15569 - Implicit fall-through does not cause an error
Summary: Implicit fall-through does not cause an error
Status: RESOLVED DUPLICATE of issue 14411
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-15 22:23 UTC by Jake Drahos
Modified: 2016-01-15 22:24 UTC (History)
0 users

See Also:


Attachments
Example code (221 bytes, text/x-dsrc)
2016-01-15 22:23 UTC, Jake Drahos
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Jake Drahos 2016-01-15 22:23:08 UTC
Created attachment 1574 [details]
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 Jake Drahos 2016-01-15 22:24:22 UTC
Found issue 14411, which is a duplicate.

*** This issue has been marked as a duplicate of issue 14411 ***