[Issue 14358] New: SDC test0134.d compiles but should not
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Mar 28 09:43:25 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14358
Issue ID: 14358
Summary: SDC test0134.d compiles but should not
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
SDC errors as follows:
```
../bin/sdc test0134.d
void __dtor() {}
^~~~~~
test0134.d:6: error: __dtor is a reserved name
```
DMD compiles incorrectly:
```test0134.d
//T compiles:no
//T has-passed:yes
// Forbiden method name.
struct Foo {
void __dtor() {}
}
void main() {}
```
--
More information about the Digitalmars-d-bugs
mailing list