From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 075CF3858C29; Wed, 17 Jan 2024 11:03:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 075CF3858C29 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705489399; bh=fjcMRKpq+OdSfpZNNfr3OEbcIRsP2gwE/vLh6h9CcMo=; h=From:To:Subject:Date:From; b=J2ooxD9xTU9pul/ZmHOTfFmzaJG8ary3NFxGJCJW1dCIWuWJCNP32Nf7Xor+2MPJU NlOroOHZU0ukyZ7lmASQefqaLcXHCchAK2peHv7w7AVxLw9fmpUVC3IJltltBucBO8 CvewAok7qcPvwVnptiEvOb+Zf/M/4HLx1NxpFRm4= From: "acoplan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/113438] New: ICE (segfault) in dwarf2out_decl with -g -std=c23 on c23-tag-composite-2.c Date: Wed, 17 Jan 2024 11:03:17 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: acoplan at gcc dot gnu.org 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=3D113438 Bug ID: 113438 Summary: ICE (segfault) in dwarf2out_decl with -g -std=3Dc23 on c23-tag-composite-2.c Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- I did a testsuite run with -g on aarch64 and noticed the following ICE: $ gcc/xgcc -B gcc -c ~/toolchain/src/gcc/gcc/testsuite/gcc.dg/c23-tag-composite-2.c -g -std=3Dc23 /home/alecop01/toolchain/src/gcc/gcc/testsuite/gcc.dg/c23-tag-composite-2.c= :15:21: internal compiler error: Segmentation fault 15 | void g(const struct foo { int x; } a); | ^~~ 0xf15783 crash_signal /home/alecop01/toolchain/src/other_gcc/gcc/toplev.cc:317 0xa23f04 dwarf2out_decl /home/alecop01/toolchain/src/other_gcc/gcc/dwarf2out.cc:27611 0xa242c3 dwarf2out_type_decl /home/alecop01/toolchain/src/other_gcc/gcc/dwarf2out.cc:27405 0xa242c3 dwarf2out_type_decl /home/alecop01/toolchain/src/other_gcc/gcc/dwarf2out.cc:27400 0xde0d8b rest_of_type_compilation(tree_node*, int) /home/alecop01/toolchain/src/other_gcc/gcc/passes.cc:339 0x79ce17 finish_struct(unsigned int, tree_node*, tree_node*, tree_node*, c_struct_parse_info*, tree_node**) /home/alecop01/toolchain/src/other_gcc/gcc/c/c-decl.cc:9733 0x7b29a7 composite_type_internal(tree_node*, tree_node*, composite_cache*) /home/alecop01/toolchain/src/other_gcc/gcc/c/c-typeck.cc:588 0x7b1867 composite_type_internal(tree_node*, tree_node*, composite_cache*) /home/alecop01/toolchain/src/other_gcc/gcc/c/c-typeck.cc:408 0x7b1867 composite_type_internal(tree_node*, tree_node*, composite_cache*) /home/alecop01/toolchain/src/other_gcc/gcc/c/c-typeck.cc:730 0x7b376f composite_type_internal(tree_node*, tree_node*, composite_cache*) /home/alecop01/toolchain/src/other_gcc/gcc/c/c-typeck.cc:408 0x7b376f composite_type(tree_node*, tree_node*) /home/alecop01/toolchain/src/other_gcc/gcc/c/c-typeck.cc:748 0x77c613 merge_decls /home/alecop01/toolchain/src/other_gcc/gcc/c/c-decl.cc:2798 0x77c613 duplicate_decls /home/alecop01/toolchain/src/other_gcc/gcc/c/c-decl.cc:3185 0x780347 pushdecl(tree_node*) /home/alecop01/toolchain/src/other_gcc/gcc/c/c-decl.cc:3374 0x798ba7 start_decl(c_declarator*, c_declspecs*, bool, tree_node*, bool, unsigned int*) /home/alecop01/toolchain/src/other_gcc/gcc/c/c-decl.cc:5703 0x81bce3 c_parser_declaration_or_fndef /home/alecop01/toolchain/src/other_gcc/gcc/c/c-parser.cc:2766 0x82962f c_parser_external_declaration /home/alecop01/toolchain/src/other_gcc/gcc/c/c-parser.cc:2046 0x82a16f c_parser_translation_unit /home/alecop01/toolchain/src/other_gcc/gcc/c/c-parser.cc:1900 0x82a16f c_parse_file() /home/alecop01/toolchain/src/other_gcc/gcc/c/c-parser.cc:26815 0x8aa8df c_common_parse_file() /home/alecop01/toolchain/src/other_gcc/gcc/c-family/c-opts.cc:1301 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions.=