http://llvm.org/bugs/show_bug.cgi?id=7817
Summary: Members of anonymous shall be unique in its scope
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Clang accepts this:
int main() { class f { }; union { int f; }; }
But the C++ Standard at 9.5[class.union]p2 says "The names of the members of an
anonymous union shall be distinct from the names of any other entity in the
scope in which the anonymous union is declared."
--
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