[LLVMbugs] [Bug 7466] New: clang c++ missing error/pedwarn for "enum { }; "

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 23 12:19:04 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7466

           Summary: clang c++ missing error/pedwarn for "enum { };"
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Testcase:
enum { };

clang accepts this without any warning/error even in -pedantic mode; this is
explicitly noted to be invalid in [dcl.dcl]p3.

-- 
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