www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13183] New: C++ namespace should not conflict with import


          Issue ID: 13183
           Summary: C++ namespace should not conflict with import root
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: verylonglogin.reg gmail.com

The fact C++ root namespace conflicts with import root package makes it hard to
have same root namespace in C++ codebase.

This code should compile:
import abba.m;
extern(C++, abba) { }
main.d(2): Error: namespace main.abba conflicts with import main.abba at

Jul 22 2014