https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89571
Volker Reichelt <reichelt at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |reichelt at gcc dot gnu.org --- Comment #6 from Volker Reichelt <reichelt at gcc dot gnu.org> --- Here's a related testcase that ICEs in a different location (and also regressed in February): ============================ struct A { int i = ; A() noexcept = default; }; ============================ bug.cc:3:9: error: expected primary-expression at end of input 3 | int i = ; | ^ bug.cc:5:2: internal compiler error: tree check: expected tree_list, have error_mark in comp_except_specs, at cp/typeck.c:1048 5 | }; | ^ 0x7ebe52 tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/gcc/tree.c:9859 0x6999e0 tree_check(tree_node const*, char const*, int, char const*, tree_code) ../../gcc/gcc/tree.h:3432 0x6999e0 comp_except_specs(tree_node const*, tree_node const*, int) ../../gcc/gcc/cp/typeck.c:1048 0x990ad6 after_nsdmi_defaulted_late_checks(tree_node*) ../../gcc/gcc/cp/method.c:2277 0x9bf206 cp_parser_class_specifier_1 ../../gcc/gcc/cp/parser.c:23611 0x9c038d cp_parser_class_specifier ../../gcc/gcc/cp/parser.c:23652 0x9c038d cp_parser_type_specifier ../../gcc/gcc/cp/parser.c:17397 0x9c12b4 cp_parser_decl_specifier_seq ../../gcc/gcc/cp/parser.c:14090 0x9c1aa1 cp_parser_simple_declaration ../../gcc/gcc/cp/parser.c:13385 0x9e4590 cp_parser_declaration ../../gcc/gcc/cp/parser.c:13204 0x9e4d0c cp_parser_translation_unit ../../gcc/gcc/cp/parser.c:4698 0x9e4d0c c_parse_file() ../../gcc/gcc/cp/parser.c:41148 0xaeb18b c_common_parse_file() ../../gcc/gcc/c-family/c-opts.c:1156 Please submit a full bug report, [etc.]