The attached code fails with: p...@dogbert> g++ -O2 -g -c mole_h2.cpp mole_h2.cpp: In function void H2_LevelPops(): mole_h2.cpp:5:6: internal compiler error: in add_virtual_operand, at tree-ssa-operands.c:638 Please submit a full bug report, ...etc. p...@dogbert> g++ -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ../gcc450/configure --prefix=/usr/local/gcc450 --enable-languages=c,c++,fortran Thread model: posix gcc version 4.5.0 20090905 (experimental) (GCC)
(this is r151446). Note that there is nothing C++ specific left in the reduced test case, however if you rename to mole_h2.c and compile with gcc, the bug goes away. The "-g" option is necessary to trigger the bug. The code is compiled correctly with g++ 4.4.1 and older. -- Summary: ICE in add_virtual_operand, at tree-ssa-operands.c:638 Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: p dot vanhoof at oma dot be http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41273