www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17178] New: namespace bar.std conflicts with namespace bar.std

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 puremagic.com
          Reporter: timothee.cour2 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

--
Feb 13 2017