The following file 'foo.cpp' doesn't compile : // foo.cpp template<typename X> class foo { static int val; }; template<int> int foo<int>::val = 0;
> g++ foo.cpp foo.cpp:1: internal compiler error: in import_export_decl, at cp/decl2.c:1733 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>. -- Summary: wrong template line crashes the compiler Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: david_tschumperle at yahoo dot fr http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27816