[LLVMbugs] [Bug 7895] New: c++ crash initializing incomplete array type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Aug 14 16:11:07 PDT 2010


           Summary: c++ crash initializing incomplete array type
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: crash-on-invalid
          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

struct A { 
  A() : argv() { }; 
  char* argv[]; 
  int x;
} y;

Crashes (after printing an error) with:
clang: SemaDeclCXX.cpp:1930: bool
clang::CXXBaseOrMemberInitializer**, unsigned int, bool): Assertion
`ClassDecl->hasFlexibleArrayMember() && "Incomplete array type is not valid"'

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