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

Chris Lattner <[email protected]> changed:

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

--- Comment #1 from Chris Lattner <[email protected]> 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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to