From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DFEC73858D39; Wed, 8 Feb 2023 03:05:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DFEC73858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675825513; bh=EuteuSed/0Zo7Gd02CRRd49yFvAy/Q/+dv2AchXrB8g=; h=From:To:Subject:Date:From; b=urbopeSrtvU/1cVsEehw6Y3YQCeWRiNWs7ZcYWwiLmQHIQzgdysih+/1T9INW2YL0 L/zkaBEtWOO/CclE5qXBbegJjDCAV/az68jkGS+JPzUNHSShaEyR23IiQV+3NgxbOw lyCXXzz4X+kFjSvzCDoBy5XUQcn6BA48htOI8j3o= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108706] New: [13 Regression] Indefinite recursion when compiling gcc/testsuite/g++.dg/cpp23/static-operator-call5.C w/ -g Date: Wed, 08 Feb 2023 03:05:12 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com 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 keywords 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108706 Bug ID: 108706 Summary: [13 Regression] Indefinite recursion when compiling gcc/testsuite/g++.dg/cpp23/static-operator-call5.C w/ -g Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gcc 13.0.1 20230205 snapshot (g:d042f118798ae0648b45f97e63b0e5ab7c82c8ef) I= CEs when compiling gcc/testsuite/g++.dg/cpp23/static-operator-call5.C w/ -std= =3Dc++23 -g: % g++-13 -std=3Dc++23 -g -c gcc/testsuite/g++.dg/cpp23/static-operator-call= 5.C g++-13: internal compiler error: Segmentation fault signal terminated progr= am cc1plus (gdb) where 20 #0 0x0000000000caca07 in ggc_internal_alloc (size=3Dsize@entry=3D48, f=3Df@entry=3D0x0, s=3Ds@entry=3D0, n=3Dn@entry=3D1) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/gg= c-page.cc:1278 #1 0x0000000000ea2939 in ggc_internal_cleared_alloc (size=3D48, f=3Df@entr= y=3D0x0, s=3Ds@entry=3D0, n=3Dn@entry=3D1) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/gg= c-common.cc:114 #2 0x00000000014e210e in ggc_internal_cleared_alloc (s=3D) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/gg= c.h:149 #3 ggc_alloc_cleared_tree_node_stat (s=3D) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/gg= c.h:325 #4 make_node (code=3Dcode@entry=3DBASELINK) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/tr= ee.cc:1218 #5 0x0000000000ba1b6c in build_baselink (binfo=3D0x7ffff7961720, access_binfo=3D0x7ffff7961720, functions=3D0x7ffff797a4c0, optype=3D0x0) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /search.cc:1082 #6 0x0000000000ba2f99 in lookup_member (xbasetype=3D, name=3D, protect=3Dprotect@entry=3D0, want_type=3Dwant_type@entry=3Dfalse, complain=3Dcomplain@entry=3D3, afi=3Dafi@entry=3D0x0) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /search.cc:1224 #7 0x0000000000a671a2 in lambda_function (lambda=3Dlambda@entry=3D0x7ffff7= 97c690) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /lambda.cc:179 #8 0x0000000000a75974 in write_closure_type_name (type=3D0x7ffff797c690) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:1804 #9 write_unqualified_name (decl=3D0x7ffff7976688) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:1511 #10 0x0000000000a76c9d in write_local_name (entity=3D, local_entity=3D, function=3D) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:2175 #11 write_name (decl=3D0x7ffff7976688, ignore_local_scope=3D) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:1057 #12 0x0000000000a77213 in write_class_enum_type (type=3D0x7ffff797c690) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/tr= ee.h:3654 #13 write_type (type=3D0x7ffff797c690) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:2337 #14 0x0000000000a7747e in write_type (type=3D0x7ffff797cb28) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:2413 #15 0x0000000000a7911f in write_method_parms (parm_types=3D0x7ffff797e168, method_p=3D, decl=3D) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:2897 #16 0x0000000000a75a78 in write_closure_type_name (type=3D) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:1819 #17 write_unqualified_name (decl=3D0x7ffff7976688) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:1511 #18 0x0000000000a76c9d in write_local_name (entity=3D, local_entity=3D, function=3D) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:2175 #19 write_name (decl=3D0x7ffff7976688, ignore_local_scope=3D) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:1057 (More stack frames follow...) (gdb) where -20 #1082279 0x0000000000a7911f in write_method_parms (parm_types=3D0x7ffff797e= 168, method_p=3D, decl=3D) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:2897 #1082280 0x0000000000a75a78 in write_closure_type_name (type=3D) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:1819 #1082281 write_unqualified_name (decl=3D0x7ffff7976688) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:1511 #1082282 0x0000000000a7f1cd in write_prefix (node=3D0x7ffff797c690) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:1257 #1082283 write_prefix (node=3D0x7ffff797c690) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:1188 #1082284 0x0000000000a766f8 in write_nested_name (decl=3D0x7ffff797da00) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:1174 #1082285 0x0000000000a76c9d in write_local_name (entity=3D, local_entity=3D, function=3D) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:2175 #1082286 write_name (decl=3D0x7ffff797da00, ignore_local_scope=3D) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:1057 #1082287 0x0000000000a793b7 in write_encoding (decl=3D0x7ffff797da00) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:853 #1082288 0x0000000000a794cd in write_mangled_name (decl=3D0x7ffff797da00, top_level=3Dtrue) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:799 #1082289 0x0000000000a79ca8 in mangle_decl_string (decl=3D0x7ffff797da00) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:4108 #1082290 0x0000000000a79ec3 in get_mangled_id (decl=3D0x7ffff797da00) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:4129 #1082291 mangle_decl (decl=3D0x7ffff797da00) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp= /mangle.cc:4167 #1082292 0x00000000014e11ce in decl_assembler_name (decl=3Ddecl@entry=3D0x7ffff797da00) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/tr= ee.cc:743 #1082293 0x0000000000de26a4 in dwarf2out_early_finish (filename=3D0x2ffdfb0 "gcc/testsuite/g++.dg/cpp23/static-operator-call5.C") at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/dw= arf2out.cc:32981 #1082294 0x0000000000d416f0 in symbol_table::finalize_compilation_unit (this=3D0x7ffff77c9000) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cg= raphunit.cc:2569 #1082295 0x00000000011f6db9 in compile_file () at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/to= plev.cc:471 #1082296 0x000000000095e237 in do_compile (no_backend=3Dfalse) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/to= plev.cc:2125 #1082297 toplev::main (this=3Dthis@entry=3D0x7fffffffd866, argc=3D, argc@entry=3D15, argv=3D, argv@entry=3D0x7fffffffd998) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/to= plev.cc:2277 #1082298 0x000000000095ff7b in main (argc=3D15, argv=3D0x7fffffffd998) at /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/ma= in.cc:39=