The following valid testcase triggers an ICE on mainline when compiled with "-O" (i686-pc-linux-gnu) or "-o -m32" (x64_64-unknown-linux-gnu):
=================================== struct A { A(); }; inline A foo() { return A(); } const A a(foo()); =================================== bug.cc: In function 'void __static_initialization_and_destruction_0(int, int)': bug.cc:8: internal compiler error: gimple check: expected gimple_assign(error_mark), have gimple_call() in gimple_assign_rhs1, at gimple.h:1717 Please submit a full bug report, [etc.] The regression appeared between 2008-07-26 and 2008-07-29. -- Summary: [4.4 regression] ICE in gimple_assign_rhs1 Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, monitored Severity: major Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37084