[LLVMbugs] [Bug 24103] New: clang can not compile a sample from [namespace.udecl]p13

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 13 03:24:40 PDT 2015


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: unassignedclangbugs at nondot.org
          Reporter: vanyacpp at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150713/dc9d15a3/attachment.html>


More information about the llvm-bugs mailing list