[Issue 21340] New: extern(C++,) extern(C++, "") and extern(C++,mixin("")) should result in no namespace not an error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 24 12:16:31 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21340
Issue ID: 21340
Summary: extern(C++,) extern(C++, "") and extern(C++,mixin(""))
should result in no namespace not an error
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: iamthewilsonator at hotmail.com
```
extern(C++)
struct A {}
extern(C++,)
struct A {}
extern(C++, "")
struct A {}
extern(C++,mixin(""))
struct A {}
```
should be all equivalent, currently only the first compiles.
```
extern(C++, true ? "ns" : "")
struct B {}
```
compiles, but
```
extern(C++, false ? "ns" : "")
struct B {}
```
does not.
--
More information about the Digitalmars-d-bugs
mailing list