From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0BB963858D3C; Wed, 19 Oct 2022 17:34:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0BB963858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666200892; bh=23qKLLXJDIup+4+CvaUEg3+hXwFO7hI6qI327eNX16E=; h=From:To:Subject:Date:From; b=iy3BkMqUmC0ZOILI7x5PR33ETJeJVfBunpA9WlRqC3C1dBaV6NKxrB3OQsHLIyVn4 UL9OUabJnHA7SaWMYKsyAlu0Xp1xF5+A+QQEX3bJR20/TVFJ/HbTtbdMs5kYPgyq67 5OehqQI+CDIIPJcFev8j9iPWAxh0KcyM6ZyDYuLI= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107321] New: [10/11/12/13 Regression] ICE in strip_array_types, at tree.cc:7284 Date: Wed, 19 Oct 2022 17:34:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107321 Bug ID: 107321 Summary: [10/11/12/13 Regression] ICE in strip_array_types, at tree.cc:7284 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started with r10 between 20191103 and 20191110: $ cat z1.cc template void f (T... b) { bool operator =3D=3D (A x, A y) =3D default; } $ gcc-13-20221016 -c z1.cc -std=3Dc++2a z1.cc: In function 'void f(T ...)': z1.cc:4:29: warning: declaration of 'bool operator=3D=3D(A, A)' has 'extern= ' and is initialized 4 | bool operator =3D=3D (A x, A y) =3D default; | ^ z1.cc:4:33: internal compiler error: Segmentation fault 4 | bool operator =3D=3D (A x, A y) =3D default; | ^~~~~~~ 0xe7a2ff crash_signal ../../gcc/toplev.cc:314 0x110aee0 strip_array_types(tree_node*) ../../gcc/tree.cc:7284 0x957988 cp_type_quals(tree_node const*) ../../gcc/cp/typeck.cc:11451 0x94f713 cp_build_qualified_type(tree_node*, int, int) ../../gcc/cp/tree.cc:1378 0x9595d6 same_type_ignoring_top_level_qualifiers_p(tree_node*, tree_node*) ../../gcc/cp/typeck.cc:1745 0x85a805 early_check_defaulted_comparison ../../gcc/cp/method.cc:1227 0x85a805 defaultable_fn_check(tree_node*) ../../gcc/cp/method.cc:3433 0x815f28 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) ../../gcc/cp/decl.cc:8247 0x8de9e4 cp_parser_init_declarator ../../gcc/cp/parser.cc:22895 0x8baca2 cp_parser_simple_declaration ../../gcc/cp/parser.cc:15284 0x8bc569 cp_parser_declaration_statement ../../gcc/cp/parser.cc:14365 0x8bcb5b cp_parser_statement ../../gcc/cp/parser.cc:12436 0x8bdb24 cp_parser_statement_seq_opt ../../gcc/cp/parser.cc:12853 0x8bdbdf cp_parser_compound_statement ../../gcc/cp/parser.cc:12805 0x8ddb08 cp_parser_function_body ../../gcc/cp/parser.cc:25179 0x8ddb08 cp_parser_ctor_initializer_opt_and_function_body ../../gcc/cp/parser.cc:25230 0x8ddfc6 cp_parser_function_definition_after_declarator ../../gcc/cp/parser.cc:31387 0x8df149 cp_parser_function_definition_from_specifiers_and_declarator ../../gcc/cp/parser.cc:31304 0x8df149 cp_parser_init_declarator ../../gcc/cp/parser.cc:22633 0x8e1f43 cp_parser_single_declaration ../../gcc/cp/parser.cc:31903=