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