http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47011
Summary: ICE when using attribute optimize Product: gcc Version: 4.4.5 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: lcaste...@gmail.com Target: x86_64-linux-gnu When compiling the attached file with: g++ -O3 -c gcc-crash.cpp the following error is emitted: gcc-crash.cpp: In member function ‘virtual A B::m()’: gcc-crash.cpp:7: internal compiler error: in tree_nrv, at tree-nrv.c:143 This happens with gcc 4.4.5 and the current branch on SVN. It doesn't seem to happen on gcc 4.5.