[llvm-bugs] [Bug 37797] New: clang fails to diagnose an ambiguous "using" clause
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 13 17:45:34 PDT 2018
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: unassignedclangbugs at nondot.org
Reporter: pickensd at synopsys.com
CC: dgregor at apple.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180614/070d6a78/attachment.html>
More information about the llvm-bugs
mailing list