[LLVMbugs] [Bug 90] New: [C++] Initializing array with constructable objects fail

bugzilla-daemon at zion.cs.uiuc.edu bugzilla-daemon at zion.cs.uiuc.edu
Tue Nov 4 21:22:40 PST 2003


           Summary: [C++] Initializing array with constructable objects fail
           Product: tools
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-g++
        AssignedTo: sabre at nondot.org
        ReportedBy: sabre at nondot.org

The following testcase crashes the C++ front-end:
struct Foo { 
void foo() {
  struct {
    Foo name;
  } Int[] =  { 1 };
$ llvmg++ test.cc -c
test.cc: In function `void foo()':
test.cc:8: internal compiler error: tree check: expected constructor, have
target_expr in llvm_expand_constructor_elements, at llvm-expand.c:3318
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.cs.uiuc.edu> for instructions.

Testcase is here: test/Regression/C++Frontend/2003-11-04-ArrayConstructors.cpp

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list