[LLVMbugs] [Bug 7075] Crashing example: struct{a():}}{

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jul 11 19:55:27 PDT 2010


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

Chris Lattner <clattner at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Chris Lattner <clattner at apple.com> 2010-07-11 21:55:26 CDT ---
This is now correctly rejected:


t2.cc:1:8: error: C++ requires a type specifier for all declarations
struct{a():}}{
       ^
t2.cc:1:12: error: expected class member or base class name
struct{a():}}{
           ^
t2.cc:1:12: error: expected '{' or ','
t2.cc:1:11: error: only constructors take base initializers
struct{a():}}{
          ^
t2.cc:1:15: error: expected '}'
struct{a():}}{
              ^
t2.cc:1:14: error: expected ';' after struct
struct{a():}}{
             ^
             ;
t2.cc:1:1: error: anonymous unions at namespace or global scope must be
declared 'static'
struct{a():}}{
^
t2.cc:1:8: error: functions cannot be declared in an anonymous struct
struct{a():}}{
       ^
t2.cc:1:1: error: anonymous structs and classes must be class members
struct{a():}}{
^
9 errors generated.

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