https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95820
Bug ID: 95820 Summary: ICE in splice_late_return_type, at cp/pt.c:29034 Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This case bug.cc, reduced by C-Reduce, crashed GCC. $cat bug.cc constexpr (*a)()->bool, $g++ -w -fpermissive small.cc bug.cc:1:19: internal compiler error: in splice_late_return_type, at cp/pt.c:29034 1 | constexpr (*a)()->bool, | ^~~~ 0x5cd1f6 splice_late_return_type(tree_node*, tree_node*) ../../gcc/cp/pt.c:29034 0x67db9a grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*, decl_context, int, tree_node**) ../../gcc/cp/decl.c:12154 0x684228 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int, tree_node*, tree_node*, tree_node**) ../../gcc/cp/decl.c:5231 0x70c8ce cp_parser_init_declarator ../../gcc/cp/parser.c:20817 0x6efcc2 cp_parser_simple_declaration ../../gcc/cp/parser.c:13785 0x7159c6 cp_parser_declaration ../../gcc/cp/parser.c:13484 0x7160b4 cp_parser_translation_unit ../../gcc/cp/parser.c:4761 0x7160b4 c_parse_file() ../../gcc/cp/parser.c:44034 0x7de74b c_common_parse_file() ../../gcc/c-family/c-opts.c:1190 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. My GCC version is $g++ --version g++ (GCC) 11.0.0 20200605 (experimental) Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.