https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83322
Bug ID: 83322 Summary: [8 Regression] r255469 causes: ICE: tree check: expected class ‘type’, have ‘exceptional’ (baselink) in diag_attr_exclusions, at attribs.c:393 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org CC: msebor at gcc dot gnu.org Target Milestone: --- Since r255469: % cat common_factor_test.ii struct A { template <class T> operator T(); __attribute__((__always_inline__)) operator int(); }; % g++ -c common_factor_test.ii common_factor_test.ii:3:51: internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (baselink) in diag_attr_exclusions, at attribs.c:393 __attribute__((__always_inline__)) operator int(); ^ 0x1019c667 tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) ../../gcc/gcc/tree.c:9149 0x10528977 tree_class_check(tree_node*, tree_code_class, char const*, int, char const*) ../../gcc/gcc/tree.h:3236 0x10528977 diag_attr_exclusions ../../gcc/gcc/attribs.c:393 0x105288a3 diag_attr_exclusions ../../gcc/gcc/attribs.c:376 0x1052b9c3 decl_attributes(tree_node**, tree_node*, int, tree_node*) ../../gcc/gcc/attribs.c:702 0x102d92e7 cplus_decl_attributes(tree_node**, tree_node*, int) ../../gcc/gcc/cp/decl2.c:1508 0x10179123 grokfndecl ../../gcc/gcc/cp/decl.c:8865 0x102ca46b grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*, decl_context, int, tree_node**) ../../gcc/gcc/cp/decl.c:12008 0x102e30f3 grokfield(cp_declarator const*, cp_decl_specifier_seq*, tree_node*, bool, tree_node*, tree_node*) ../../gcc/gcc/cp/decl2.c:829 0x103b5463 cp_parser_member_declaration ../../gcc/gcc/cp/parser.c:23828 0x103b6907 cp_parser_member_specification_opt ../../gcc/gcc/cp/parser.c:23302 0x103b6907 cp_parser_class_specifier_1 ../../gcc/gcc/cp/parser.c:22444 0x103b94d7 cp_parser_class_specifier ../../gcc/gcc/cp/parser.c:22696 0x103b94d7 cp_parser_type_specifier ../../gcc/gcc/cp/parser.c:16704 0x103cccf3 cp_parser_decl_specifier_seq ../../gcc/gcc/cp/parser.c:13565 0x103d64af cp_parser_simple_declaration ../../gcc/gcc/cp/parser.c:12874 0x103d798f cp_parser_block_declaration ../../gcc/gcc/cp/parser.c:12821 0x103def17 cp_parser_declaration ../../gcc/gcc/cp/parser.c:12719 0x103df4a3 cp_parser_declaration_seq_opt ../../gcc/gcc/cp/parser.c:12595 0x103df88f cp_parser_translation_unit ../../gcc/gcc/cp/parser.c:4558