This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28358] New: ICE on valide template code using -O1 or -O2, but *not* with -O0 or -O3
- From: "peter dot soetens at fmtc dot be" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jul 2006 13:02:16 -0000
- Subject: [Bug c++/28358] New: ICE on valide template code using -O1 or -O2, but *not* with -O0 or -O3
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Full version string:
g++-4.1 (GCC) 4.1.2 20060708 (prerelease) (Ubuntu 4.1.1-8ubuntu1)
Same problem exists in Debian 'etch'.
The error message after the location of the crash is:
/usr/include/boost/spirit/core/composite/actions.hpp:106: internal compiler
error: in expand_expr_addr_expr_1, at expr.c:6336
It only occurs using the -O1 and -O2 flags, but succeeds in compiling using -O0
or -O3. No other flags need to be given to trigger this crash.
Older compiler versions (4.0,3.4,3.3...) do not have this bug.
Preprocessed code follows...
--
Summary: ICE on valide template code using -O1 or -O2, but *not*
with -O0 or -O3
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: peter dot soetens at fmtc dot be
GCC build triplet: i486-linux-gnu
GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28358