[LLVMbugs] [Bug 13706] New: lookup of nested-name-specifier in using-directive or namespace-alias-definition
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Aug 27 04:28:46 PDT 2012
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: unassignedclangbugs at nondot.org
ReportedBy: vanyacpp at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list