[Issue 17178] namespace bar.std conflicts with namespace bar.std

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Feb 13 00:18:13 PST 2017


https://issues.dlang.org/show_bug.cgi?id=17178

Timothee Cour <timothee.cour2 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timothee.cour2 at gmail.com

--- Comment #1 from Timothee Cour <timothee.cour2 at gmail.com> ---
other bug:

dmd -c -o- bar.d
Error: namespace bar.std conflicts with import bar.std at bar.d(2)

```
module bar;
import std.exception;
extern (C++, std) { struct Foo1 { } }
```

this makes it impossible to mix phobos code (requiring import std.some_package)
and `extern(C++,std)`

--


More information about the Digitalmars-d-bugs mailing list