From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 761CB39890AA; Tue, 20 Jul 2021 16:54:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 761CB39890AA From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/101533] New: ICE in gen_type_die_with_usage, at dwarf2out.c:25988 Date: Tue, 20 Jul 2021 16:54:10 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de 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: Tue, 20 Jul 2021 16:54:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101533 Bug ID: 101533 Summary: ICE in gen_type_die_with_usage, at dwarf2out.c:25988 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Affects versions down to at least r5, with option -g : $ cat z1.cc template class T { typedef struct {} a __attribute__((aligned)); }; void f () { T(); } $ g++-12-20210718 -c z1.cc $ $ g++-12-20210718 -c z1.cc -g z1.cc: In instantiation of 'class T': z1.cc:7:10: required from here z1.cc:1:27: internal compiler error: in gen_type_die_with_usage, at dwarf2out.c:25988 1 | template class T | ^ 0xa138e0 gen_type_die_with_usage ../../gcc/dwarf2out.c:25988 0xa13916 gen_type_die ../../gcc/dwarf2out.c:26191 0xa13f53 modified_type_die ../../gcc/dwarf2out.c:13817 0xa15643 add_type_attribute ../../gcc/dwarf2out.c:22131 0xa2b017 gen_typedef_die ../../gcc/dwarf2out.c:25867 0xa1010c gen_decl_die ../../gcc/dwarf2out.c:26833 0xa11d6f gen_member_die ../../gcc/dwarf2out.c:25644 0xa11d6f gen_struct_or_union_type_die ../../gcc/dwarf2out.c:25740 0xa11d6f gen_tagged_type_die ../../gcc/dwarf2out.c:25941 0xa12fce gen_type_die_with_usage ../../gcc/dwarf2out.c:26136 0xa13916 gen_type_die ../../gcc/dwarf2out.c:26191 0xa0fc3e gen_decl_die ../../gcc/dwarf2out.c:26830 0xa10d8e dwarf2out_decl ../../gcc/dwarf2out.c:27385 0xa10f5c dwarf2out_type_decl ../../gcc/dwarf2out.c:27103 0xca35d2 rest_of_type_compilation(tree_node*, int) ../../gcc/passes.c:339 0x702735 finish_struct_1(tree_node*) ../../gcc/cp/class.c:7523 0x850228 instantiate_class_template_1 ../../gcc/cp/pt.c:12211 0x850228 instantiate_class_template(tree_node*) ../../gcc/cp/pt.c:12251 0x884103 complete_type(tree_node*) ../../gcc/cp/typeck.c:143 0x8841cd complete_type_or_maybe_complain(tree_node*, tree_node*, int) ../../gcc/cp/typeck.c:156=