[Issue 14366] New: DMD should not compile SDC test0174.d
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Mar 28 10:04:40 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14366
Issue ID: 14366
Summary: DMD should not compile SDC test0174.d
Product: D
Version: unspecified
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: shammah.chancellor at gmail.com
```
> ../bin/sdc test0174.d
case 1:
^~~~~~~
test0174.d:9: error: Fallthrough is disabled, use goto case.
```
```test0174.d
//T compiles:no
//T has-passed:yes
// Must use goto case
void main() {
switch(0) {
case 0:
int i;
case 1:
default:
}
}
```
--
More information about the Digitalmars-d-bugs
mailing list