[LLVMbugs] [Bug 7032] New: Sizeless array definition in class

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 3 12:34:08 PDT 2010


           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: unassignedbugs at nondot.org
        ReportedBy: John.Thompson.JTSoftware at gmail.com
                CC: llvmbugs at cs.uiuc.edu

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

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