https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84962
Bug ID: 84962 Summary: internal compiler error: in get_fns, at cp/tree.c:2505 Product: gcc Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at oracle dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: struct { struct { template <typename> void a(); }; : a } Output: $ cc1plus <stdin>:4:17: internal compiler error: in get_fns, at cp/tree.c:2505 0x130ac07 get_fns(tree_node*) /home/vegard/git/gcc/gcc/cp/tree.c:2504 0x130adf0 get_first_fn(tree_node*) /home/vegard/git/gcc/gcc/cp/tree.c:2514 0x12ae65f finish_id_expression(tree_node*, tree_node*, tree_node*, cp_id_kind*, bool, bool, bool*, bool, bool, bool, bool, char const**, unsigned int) /home/vegard/git/gcc/gcc/cp/semantics.c:3731 0xf33f42 cp_parser_primary_expression /home/vegard/git/gcc/gcc/cp/parser.c:5611 0xf7698b cp_parser_postfix_expression /home/vegard/git/gcc/gcc/cp/parser.c:7030 0xf2a4b7 cp_parser_unary_expression /home/vegard/git/gcc/gcc/cp/parser.c:8322 0xebfeca cp_parser_cast_expression /home/vegard/git/gcc/gcc/cp/parser.c:9090 0xec24f6 cp_parser_binary_expression /home/vegard/git/gcc/gcc/cp/parser.c:9191 0xecbd14 cp_parser_constant_expression /home/vegard/git/gcc/gcc/cp/parser.c:9762 0xfdec8d cp_parser_member_declaration /home/vegard/git/gcc/gcc/cp/parser.c:23684 0xf142ab cp_parser_member_specification_opt /home/vegard/git/gcc/gcc/cp/parser.c:23374 0xf142ab cp_parser_class_specifier_1 /home/vegard/git/gcc/gcc/cp/parser.c:22516 0xf231cb cp_parser_class_specifier /home/vegard/git/gcc/gcc/cp/parser.c:22768 0xf231cb cp_parser_type_specifier /home/vegard/git/gcc/gcc/cp/parser.c:16774 0xf8858a cp_parser_decl_specifier_seq /home/vegard/git/gcc/gcc/cp/parser.c:13629 0xfa3a70 cp_parser_simple_declaration /home/vegard/git/gcc/gcc/cp/parser.c:12938 0xfab998 cp_parser_block_declaration /home/vegard/git/gcc/gcc/cp/parser.c:12883 0xffead5 cp_parser_declaration /home/vegard/git/gcc/gcc/cp/parser.c:12780 0xff5b8b cp_parser_declaration_seq_opt /home/vegard/git/gcc/gcc/cp/parser.c:12656 0xff71b3 cp_parser_translation_unit /home/vegard/git/gcc/gcc/cp/parser.c:4561 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. Version: GNU C++14 (GCC) version 8.0.1 20180306 (experimental) (x86_64-pc-linux-gnu)