This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24190] New: ICE using optimization
- From: "Thomas dot Svedberg at chalmers dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Oct 2005 14:01:22 -0000
- Subject: [Bug c++/24190] New: ICE using optimization
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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