The following code produces the error: $ c++ -c triangles_test.cpp -O9 triangles_test.cpp: In member function virtual Halfedge_handle Ovl_visitor::insert_at_vertices(): triangles_test.cpp:12:24: internal compiler error: tree check: expected var_decl, have result_decl in gimplify_modify_expr, at gimplify.c:4571 Please submit a full bug report,
I checked with a snapshot from the 3rd of July, so this shouldn't be the same as bug 44706 (the closest thing I could find in bugzilla). struct Halfedge_handle { void *a,*b; int c; }; struct Ovl_visitor { virtual Halfedge_handle insert_at_vertices () { Halfedge_handle res; Halfedge_handle he = res; return res; } }; Ovl_visitor visitor ; -- Summary: ICE: tree check: expected var_decl, have result_decl in gimplify_modify_expr Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: marc dot glisse at normalesup dot org GCC host triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44808