[Bug debug/101266] New: ICE with -g: in loc_list_from_tree_1, at dwarf2out.c:19421

cnsun at uwaterloo dot ca gcc-bugzilla@gcc.gnu.org
Wed Jun 30 05:14:39 GMT 2021


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.


More information about the Gcc-bugs mailing list