(the choice of component is random) When I compile this code (I am going to attach it immediatly) with g++ -O1 -c test_api.cpp, I get:
test_api.cpp: In function boost::optional<V> construct_normal_offset_lines_isecC2(): test_api.cpp:129:15: internal compiler error: in load_assign_lhs_subreplacements, at tree-sra.c:2475 Without -O1 the compiler is happy. g++-4.4 is happy as well. -- Summary: ICE: in load_assign_lhs_subreplacements, at tree- sra.c:2475 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization 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=44972