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

           Summary: Sizeless array definition in class
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


class __attribute__ ((aligned(16))) test { 
int m;
__attribute__ ((aligned(16))) unsigned int mDummy[];
};

C:\Sony\Clang\exp>clang -cc1 AttributeAligned.cpp
AttributeAligned.cpp:3:44: error: field has incomplete type 'unsigned int []'
__attribute__ ((aligned(16))) unsigned int mDummy[];
                                           ^
1 error generated.

I suppose this is not necessarily a bug, but it compiles in gcc.  The user is
using the field to align the class size, which is why I left in the alignment
attributes.

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