https://llvm.org/bugs/show_bug.cgi?id=24324
Bug ID: 24324
Summary: Name lookup ambiguity between namespace and its alias
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++14
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Test case:
namespace P{ namespace X { static int i = 1; } }
namespace Q { namespace X = P::X; }
using namespace P;
using namespace Q;
int main() { X::i; }
Command line:
clang++ prog.cc -std=c++14 -pedantic-errors
This results in name-lookup ambiguity errors when looking up X in main. This is
not a name-lookup ambiguity since the two names founds denotes the same entity.
--
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