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

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

Reply via email to