This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/40866] New: [4.5 Regression] ICE in create_tmp_var, at gimplify.c:504


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]