[Issue 17178] New: namespace bar.std conflicts with namespace bar.std
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Feb 13 00:09:52 PST 2017
https://issues.dlang.org/show_bug.cgi?id=17178
Issue ID: 17178
Summary: namespace bar.std conflicts with namespace bar.std
Product: D
Version: D2
Hardware: x86
OS: All
Status: NEW
Severity: blocker
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: timothee.cour2 at gmail.com
```
module bar;
extern (C++, std) { struct Foo1 { } }
extern (C++, std) { struct Foo2 { } }
```
DMD64 D Compiler v2.073.0
dmd -c -o- bar.d
Error: namespace bar.std conflicts with namespace bar.std at bar.d(2)
this should work, no reason to require all `extern (C++, std)` declarations to
be in 1 block, sometimes this is not desirable
--
More information about the Digitalmars-d-bugs
mailing list