ICE on compiling the following: #include <string> #include <boost/algorithm/string.hpp>
void __prepare_line (std::string & line, const char * linebuf) { line = linebuf; boost::erase_last (line, "\r"); } > gcc-4.1.0 -v AnvÀnder inbyggda specifikationer. Target: i686-pc-linux-gnu Konfigurerad med: ../4.1/configure --enable-languages=c,c++,f95 --enable-shared --enable-threads=posix --disable-checking --program-suffix=-4.1.0 TrÄdmodell: posix gcc version 4.1.0 20051004 (experimental) > g++-4.1.0 -O1 -c -O GCC-BUG.cpp GCC-BUG.cpp: In function "void __prepare_line(std::string&, const char*)": GCC-BUG.cpp:4: internal compiler error: Segmenteringsfel I have seen this for some time, same results with O2 or O3 (works with -g). -- Summary: ICE using optimization Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Thomas dot Svedberg at chalmers dot se GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24190