From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B8226383B421; Wed, 30 Jun 2021 05:14:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B8226383B421 From: "cnsun at uwaterloo dot ca" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: tree-ssa X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cnsun at uwaterloo dot ca 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 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: Wed, 30 Jun 2021 05:14:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101266 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=3Dgcc-trunk COLLECT_LTO_WRAPPER=3D/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-lin= ux-gnu/12.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /tmp/tmp.uZ7IoZqhUx-gcc-builder/gcc/configure --enable-languages=3Dc,c++,lto --enable-checking-yes --enable-multiarch --prefix=3D/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 for instructions.=