This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40866] New: [4.5 Regression] ICE in create_tmp_var, at gimplify.c:504
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jul 2009 22:07:55 -0000
- Subject: [Bug c++/40866] New: [4.5 Regression] ICE in create_tmp_var, at gimplify.c:504
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The code below used to compile fine. I'll also attach a preprocessed version as
it depends on Qt4.
$> cat ice.cpp
#include <QDialog>
class myDialog : public QDialog {
public:
myDialog();
};
myDialog::myDialog() {
foreach (QAction *action, actions()) {
}
}
$> g++-svn -g -Wall -I. -I/usr/include/qt4 -I/usr/include/qt4/QtGui -c ice.cpp
ice.cpp: In constructor 'myDialog::myDialog()':
ice.cpp:9:3: warning: unused variable 'action'
ice.cpp: In constructor 'myDialog::myDialog()':
ice.cpp:9:3: internal compiler error: in create_tmp_var, at gimplify.c:504
Please submit a full bug report
$> g++-svn -v
gcc version 4.5.0 20090725 (experimental) (GCC)
--
Summary: [4.5 Regression] ICE in create_tmp_var, at
gimplify.c:504
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dfranke at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40866