http://llvm.org/bugs/show_bug.cgi?id=13706
Bug #: 13706
Summary: lookup of nested-name-specifier in using-directive or
namespace-alias-definition
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++11
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
One of the last draft changed [basic.lookup.udir]p1 from
"When looking up a namespace-name in a using-directive or
namespace-alias-definition, only namespace names are considered."
to
"In a using-directive or namespace-alias-definition, during the lookup for a
namespace-name or for a name in a nested-name-specifier only namespace names
are considered."
It means that in C++11 the following code is valid:
namespace a
{
struct a
{};
namespace b = a::a;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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