[LLVMbugs] [Bug 7817] New: Members of anonymous shall be unique in its scope

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 4 14:16:24 PDT 2010


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: unassignedclangbugs at nondot.org
        ReportedBy: schaub-johannes at web.de
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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.



More information about the llvm-bugs mailing list