[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


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

           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


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

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

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