https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79899
Bug ID: 79899 Summary: ICE in ctor_omit_inherited_parms at gcc/cp/method.c:576 on ARM target Product: gcc Version: 7.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Target Milestone: --- Target: arm-linux-gnueabi Following test-case ICEs on ARM target (with cross-compiler): $ arm-linux-gnueabi-g++ /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/other/friend5.C -Os /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/other/friend5.C:8:16: error: member functions are implicitly friends of their class [-fpermissive] friend A::~A() {} /* { dg-error "implicitly friends of their class" } */ ^ /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/other/friend5.C:8:19: internal compiler error: Segmentation fault friend A::~A() {} /* { dg-error "implicitly friends of their class" } */ ^ 0xd67a0f crash_signal .././../gcc/toplev.c:337 0x79c79b ctor_omit_inherited_parms(tree_node*) .././../gcc/cp/method.c:576 0x7efc58 maybe_thunk_body .././../gcc/cp/optimize.c:265 0x7f11c8 maybe_clone_body(tree_node*) .././../gcc/cp/optimize.c:509 0x7b4727 expand_or_defer_fn_1(tree_node*) .././../gcc/cp/semantics.c:4236 0x7b49f8 expand_or_defer_fn(tree_node*) .././../gcc/cp/semantics.c:4258 0x7445ab cp_parser_function_definition_after_declarator .././../gcc/cp/parser.c:26270 0x744954 cp_parser_late_parsing_for_member .././../gcc/cp/parser.c:27144 0x725d41 cp_parser_class_specifier_1 .././../gcc/cp/parser.c:22328 0x726831 cp_parser_class_specifier .././../gcc/cp/parser.c:22354 0x726831 cp_parser_type_specifier .././../gcc/cp/parser.c:16421 0x73bb69 cp_parser_decl_specifier_seq .././../gcc/cp/parser.c:13332 0x745881 cp_parser_simple_declaration .././../gcc/cp/parser.c:12654 0x7467ca cp_parser_block_declaration .././../gcc/cp/parser.c:12599 0x74e73e cp_parser_declaration .././../gcc/cp/parser.c:12496 0x74eb96 cp_parser_declaration_seq_opt .././../gcc/cp/parser.c:12372 0x74eec8 cp_parser_translation_unit .././../gcc/cp/parser.c:4366 0x74eec8 c_parse_file() .././../gcc/cp/parser.c:38427 0x8b2b82 c_common_parse_file() .././../gcc/c-family/c-opts.c:1107