https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39751
Vegard Nossum <vegard.nossum at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vegard.nossum at gmail dot com --- Comment #10 from Vegard Nossum <vegard.nossum at gmail dot com> --- Original test case still causes a crash in trunk (8.0.1 20180227), here 8.0.1 20180204: <stdin>:5:1: error: types may not be defined in template arguments <stdin>:6:4: error: ISO C++ forbids declaration of 'f' with no type [-fpermissive] <stdin>:6:6: error: expected '}' at end of input <stdin>:5:1: note: to match this '{' <stdin>:6:6: error: expected template-argument at end of input <stdin>:6:6: error: expected '>' at end of input <stdin>:4:1: error: expected unqualified-id at end of input <stdin>:4:1: error: expected '}' at end of input <stdin>:3:1: note: to match this '{' <stdin>:4:1: internal compiler error: in cp_lexer_new_from_tokens, at cp/parser.c:689 0xe8d9df cp_lexer_new_from_tokens /home/vegard/git/gcc/gcc/cp/parser.c:689 0xe8d9df cp_parser_push_lexer_for_tokens /home/vegard/git/gcc/gcc/cp/parser.c:3946 0xf9ae96 cp_parser_late_parsing_for_member /home/vegard/git/gcc/gcc/cp/parser.c:27507 0xf14765 cp_parser_class_specifier_1 /home/vegard/git/gcc/gcc/cp/parser.c:22676 0xf1fcbb cp_parser_class_specifier /home/vegard/git/gcc/gcc/cp/parser.c:22702 0xf1fcbb cp_parser_type_specifier /home/vegard/git/gcc/gcc/cp/parser.c:16708 0xf8520a cp_parser_decl_specifier_seq /home/vegard/git/gcc/gcc/cp/parser.c:13573 0xf9fe9f cp_parser_single_declaration /home/vegard/git/gcc/gcc/cp/parser.c:27017 0xfc2718 cp_parser_template_declaration_after_parameters /home/vegard/git/gcc/gcc/cp/parser.c:26706 0xfc0d1b cp_parser_explicit_template_declaration /home/vegard/git/gcc/gcc/cp/parser.c:26944 0xfc0d1b cp_parser_template_declaration_after_export /home/vegard/git/gcc/gcc/cp/parser.c:26962 0xffbd51 cp_parser_declaration /home/vegard/git/gcc/gcc/cp/parser.c:12673 0xff298b cp_parser_declaration_seq_opt /home/vegard/git/gcc/gcc/cp/parser.c:12600 0xff3fb3 cp_parser_translation_unit /home/vegard/git/gcc/gcc/cp/parser.c:4559 0xff3fb3 c_parse_file() /home/vegard/git/gcc/gcc/cp/parser.c:38820 0x15a0525 c_common_parse_file() /home/vegard/git/gcc/gcc/c-family/c-opts.c:1132 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.