Bugzilla – Bug 421
[llvmg++] Crash in initializing array with constructors in hard EH situations
Last modified: 2004-11-27 16:46:10
You need to log in before you can comment on or make changes to this bug.
g++ -c -o meta.o -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/home/manyoso/dev/qt-x11-free-3.3.2/include/qmake -I/home/manyoso/dev/qt-x11-free-3.3.2/include -I/home/manyoso/dev/qt-x11-free-3.3.2/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -save-temps -I/home/manyoso/dev/qt-x11-free-3.3.2/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP meta.cpp cc1plus: ../../cfrontend/src/gcc/llvm-expand.c:1098: llvm_emit_label: Assertion `f->containing_block == InnermostCleanupScope && "Eliminating fixup for non-current scope!"' failed. meta.cpp: In member function `bool QMakeMetaInfo::readLibtoolFile(const QString&)': meta.cpp:148: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://llvm.cs.uiuc.edu> for instructions. This is using the latest LLVM release. Cheers, Adam
Created an attachment (id=165) [details] Preprocessed source for the bug
Hi there, I'm afraid that this preprocessed source is incomplete. It depends on the Qt headers, which I don't have handy. Can you re-run the compile command with the "-save-temps" option to llvm-g++, and send us the resulting .ii file? Thanks, -Brian
Created an attachment (id=178) [details] complete preprocessed source for the bug
Created an attachment (id=179) [details] reduced test case for the bug This preprocessed C++ source reproduces the bug and is minimal, I think.
Here's a slightly more reduced testcase: struct Strongbad { Strongbad(const char *str ); ~Strongbad(); operator const char *() const; }; void TheCheat () { Strongbad foo(0); Strongbad dirs[] = { Strongbad(0) + 1}; }
Fixed. Testcase here: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20041122/021375.html Patch here: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20041122/021376.html -Chris