public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "acoplan at gcc dot gnu.org" <gcc-bugzilla@gcc.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	[thread overview]
Message-ID: <bug-113438-4@http.gcc.gnu.org/bugzilla/> (raw)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113438

            Bug ID: 113438
           Summary: ICE (segfault) in dwarf2out_decl with -g -std=c23 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=c23
/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 <https://gcc.gnu.org/bugs/> for instructions.

             reply	other threads:[~2024-01-17 11:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-17 11:03 acoplan at gcc dot gnu.org [this message]
2024-01-17 11:15 ` [Bug c/113438] " acoplan at gcc dot gnu.org
2024-01-17 13:33 ` rguenth at gcc dot gnu.org
2024-01-20 15:26 ` uecker at gcc dot gnu.org
2024-01-23 13:58 ` uecker at gcc dot gnu.org
2024-01-28  9:06 ` muecker at gwdg dot de
2024-01-31 19:56 ` cvs-commit at gcc dot gnu.org
2024-01-31 20:33 ` uecker at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-113438-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).