From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4FA9B388E837; Mon, 29 Jun 2020 13:02:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4FA9B388E837 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593435770; bh=5BWe0WTcklb1Vur8Jyu4CCpQRCtrcCYxBNN7Jhs3BAM=; h=From:To:Subject:Date:From; b=u8bOXi3RHUVL6yy2HwxUNNd4pk4aNkG5yNZgdCSPJW2pYEiQgqa5uORw9c6s5/gIA n9suS8Yle6CWU+kpUm69kRSFx1T8kRedITPEjnaZqKFP7tSfbfJ6J9C3CNRS6G4d2Q h/Zi7IkN6xHcC5AEb98byWcixZkAjTPmW1SSimyY= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95963] New: [11 Regression] ICE: Segmentation fault (in contains_struct_check) Date: Mon, 29 Jun 2020 13:02:49 +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: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com 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 keywords 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2020 13:02:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95963 Bug ID: 95963 Summary: [11 Regression] ICE: Segmentation fault (in contains_struct_check) Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- g++-11.0.0-alpha20200628 snapshot (g:b26fd416fb0a734d3f3e56629b6dff2e3c25dd= 40) ICEs when compiling gcc/testsuite/g++.dg/cpp1z/launder7.C or launder2.C w/ -Wnonnull: % g++-11.0.0 -Wnonnull -c gcc/testsuite/g++.dg/cpp1z/launder7.C gcc/testsuite/g++.dg/cpp1z/launder7.C: In function 'void bar(A*)': gcc/testsuite/g++.dg/cpp1z/launder7.C:9:31: internal compiler error: Segmentation fault 9 | __builtin_launder (p)->foo (); | ^ 0x1011d1f crash_signal =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/toplev.c:328 0xad07cf contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/tree.h:3414 0xad07cf check_function_arguments_recurse(void (*)(void*, tree_node*, unsig= ned long), void*, tree_node*, unsigned long) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/c-family/c-common.c:5820 0xad1162 check_function_nonnull =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/c-family/c-common.c:5315 0xad1162 check_function_arguments(unsigned int, tree_node const*, tree_node const*, int, tree_node**, vec*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/c-family/c-common.c:5764 0x884456 build_over_call =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/cp/call.c:8868 0x88692c build_new_method_call_1 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/cp/call.c:10348 0x88784f build_new_method_call(tree_node*, tree_node*, vec**, tree_node*, int, tree_node**, int) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/cp/call.c:10423 0x9bf26a cp_parser_postfix_expression =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/cp/parser.c:7481 0x9a05a9 cp_parser_binary_expression =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/cp/parser.c:9609 0x9a224e cp_parser_assignment_expression =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/cp/parser.c:9914 0x9a2613 cp_parser_expression =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/cp/parser.c:10082 0x9a55d8 cp_parser_expression_statement =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/cp/parser.c:11742 0x9b0c33 cp_parser_statement =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/cp/parser.c:11538 0x9b24e8 cp_parser_statement_seq_opt =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/cp/parser.c:11889 0x9b25c8 cp_parser_compound_statement =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/cp/parser.c:11839 0x9caab5 cp_parser_function_body =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/cp/parser.c:23116 0x9caab5 cp_parser_ctor_initializer_opt_and_function_body =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/cp/parser.c:23167 0x9cdf96 cp_parser_function_definition_after_declarator =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/cp/parser.c:29063 0x9cefa9 cp_parser_function_definition_from_specifiers_and_declarator =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200628/work/gcc-11-20200628/gc= c/cp/parser.c:28979=