http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39751
--- Comment #8 from Zdenek Sojka <zsojka at seznam dot cz> 2011-03-21 14:34:14 UTC --- (In reply to comment #7) > I just checked again and this problem seems to be fixed in trunk now. It still crashes for me (with the testcase from comment #0): $ gcc-4.7.0-pre9999 xxx.C xxx.C:5:1: error: types may not be defined in template arguments xxx.C:6:4: error: ISO C++ forbids declaration of ‘f’ with no type [-fpermissive] xxx.C:6:6: error: expected ‘}’ at end of input xxx.C:6:6: error: expected template-argument at end of input xxx.C:6:6: error: expected ‘>’ at end of input xxx.C:6:6: error: expected ‘::’ at end of input xxx.C:6:6: error: expected unqualified-id at end of input xxx.C:6:6: error: expected ‘;’ at end of input xxx.C:6:6: error: expected ‘}’ at end of input xxx.C:6:6: internal compiler error: in cp_lexer_new_from_tokens, at cp/parser.c:395 Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions.