[LLVMbugs] [Bug 7014] New: "Using namespace" problem

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 2 05:02:50 PDT 2010


           Summary: "Using namespace" problem
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chris at bubblescope.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

The following code, reduced from a boost test case, is accepted by g++ and
Comeau, but rejected by clang. I can't find wording which would allow of forbid
it in the standard.

namespace X
    namespace Y {}

using namespace X;

namespace Y = X::Y;

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list