We get an ICE building a real C++ app. Thanks to mec for the minimized testcase, which I will attach. Building it with gcc-4.0.1 and last week's gcc-4.1 snapshot produces the errors shown below.
gcc-4.0.1: i686-unknown-linux-gnu-g++ -c b2.cc b2.cc: In instantiation of 'Beta<true, void, Delta, int>': b2.cc:40: instantiated from here b2.cc:8: internal compiler error: in write_template_arg_literal, at cp/mangle.c:2203 gcc-4.1-20050716: i686-unknown-linux-gnu-g++ -c b2.cc b2.cc: In instantiation of 'Beta<true, void, Delta, int>': b2.cc:40: instantiated from here b2.cc:8: internal compiler error: in write_template_arg_literal, at cp/mangle.c:2228 -- Summary: [4.0/4.1 regression] ICE in write_template_arg_literal, at cp/mangle.c Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dank at kegel dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23056