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

            Bug ID: 37797
           Summary: clang fails to diagnose an ambiguous "using" clause
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangb...@nondot.org
          Reporter: picke...@synopsys.com
                CC: dgre...@apple.com, llvm-bugs@lists.llvm.org

The following C++ code should cause a compilation error, but it does not.
clang 3.8 did properly diagnose the error, but it somehow regressed since then.
-------------------------------------------

namespace A { struct x {}; }
namespace B { int x = 13; }
namespace C { using A::x; using B::x; }
namespace D { using A::x; }
using namespace C; 
using namespace D;
int main(){ return x; }  //<-- x should be ambiguous!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to