https://llvm.org/bugs/show_bug.cgi?id=24103

            Bug ID: 24103
           Summary: clang can not compile a sample from
                    [namespace.udecl]p13
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Currently clang prints an error on this code:

namespace A {
    int x;
}
namespace B {
    struct x { };
}
void func() {
    using B::x;
    using A::x; // OK: hides struct B::x
    x; // assigns to A::x
}

error: target of using declaration conflicts with declaration already in scope

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to