public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cnsun at uwaterloo dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/101266] New: ICE with -g: in loc_list_from_tree_1, at dwarf2out.c:19421
Date: Wed, 30 Jun 2021 05:14:39 +0000	[thread overview]
Message-ID: <bug-101266-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 101266
           Summary: ICE with -g: in loc_list_from_tree_1, at
                    dwarf2out.c:19421
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cnsun at uwaterloo dot ca
  Target Milestone: ---

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/configure
--enable-languages=c,c++,lto --enable-checking-yes --enable-multiarch
--prefix=/scratch/software/gcc-trunk --disable-bootstrap
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.0 20210630 (experimental) [master revision
:ddd6233e0:ed392e9db434898eccec81edd85323d21d555fe9] (GCC)

$ cat mutant.c
typedef U;
fn8(U (*)[(int){1}]) {}

$ gcc-trunk -w -g mutant.c
mutant.c:2:1: internal compiler error: in loc_list_from_tree_1, at
dwarf2out.c:19421
    2 | fn8(U (*)[(int){1}]) {}
      | ^~~
0x6b1ad0 loc_list_from_tree_1
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/dwarf2out.c:19421
0xb224ad loc_list_from_tree_1
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/dwarf2out.c:18927
0xb224ad loc_list_from_tree_1
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/dwarf2out.c:18927
0xb22f18 loc_list_from_tree_1
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/dwarf2out.c:19245
0xb25f1b loc_list_from_tree
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/dwarf2out.c:19518
0xb319a5 add_scalar_info
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/dwarf2out.c:21265
0xb32bce add_subscript_info
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/dwarf2out.c:21507
0xb1d7b7 gen_array_type_die
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/dwarf2out.c:22378
0xb1d7b7 gen_type_die_with_usage
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/dwarf2out.c:26125
0xb1edd6 gen_type_die
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/dwarf2out.c:26187
0xb3806e gen_decl_die
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/dwarf2out.c:26826
0xb39296 dwarf2out_decl
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/dwarf2out.c:27381
0xb39460 dwarf2out_type_decl
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/dwarf2out.c:27099
0xb39460 dwarf2out_type_decl
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/dwarf2out.c:27094
0xe30b7a rest_of_decl_compilation(tree_node*, int, int)
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/passes.c:251
0x8f2ca7 finish_decl(tree_node*, unsigned int, tree_node*, tree_node*,
tree_node*)
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/c/c-decl.c:5606
0x8f692e grokdeclarator
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/c/c-decl.c:7171
0x8fa813 push_parm_decl(c_parm const*, tree_node**)
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/c/c-decl.c:5896
0x943079 c_parser_parms_list_declarator
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/c/c-parser.c:4291
0x9433ec c_parser_parms_declarator
        /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/gcc/c/c-parser.c:4217
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

             reply	other threads:[~2021-06-30  5:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-30  5:14 cnsun at uwaterloo dot ca [this message]
2021-06-30  6:43 ` [Bug c/101266] " rguenth at gcc dot gnu.org
2021-06-30  7:25 ` marxin at gcc dot gnu.org
2021-06-30 11:04 ` [Bug debug/101266] " jakub at gcc dot gnu.org
2021-06-30 11:17 ` jakub at gcc dot gnu.org
2021-07-01  7:46 ` cvs-commit at gcc dot gnu.org
2021-07-01  7:54 ` jakub at gcc dot gnu.org
2021-07-18 23:29 ` cvs-commit at gcc dot gnu.org
2022-05-10  8:19 ` cvs-commit at gcc dot gnu.org
2022-05-11  6:21 ` cvs-commit at gcc dot gnu.org
2022-05-11  6:36 ` jakub 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-101266-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).