public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108706] New: [13 Regression] Indefinite recursion when compiling gcc/testsuite/g++.dg/cpp23/static-operator-call5.C w/ -g
@ 2023-02-08 3:05 asolokha at gmx dot com
2023-02-08 13:03 ` [Bug c++/108706] " jakub at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: asolokha at gmx dot com @ 2023-02-08 3:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108706
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) ICEs
when compiling gcc/testsuite/g++.dg/cpp23/static-operator-call5.C w/ -std=c++23
-g:
% g++-13 -std=c++23 -g -c gcc/testsuite/g++.dg/cpp23/static-operator-call5.C
g++-13: internal compiler error: Segmentation fault signal terminated program
cc1plus
(gdb) where 20
#0 0x0000000000caca07 in ggc_internal_alloc (size=size@entry=48,
f=f@entry=0x0, s=s@entry=0, n=n@entry=1)
at
/var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/ggc-page.cc:1278
#1 0x0000000000ea2939 in ggc_internal_cleared_alloc (size=48, f=f@entry=0x0,
s=s@entry=0, n=n@entry=1)
at
/var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/ggc-common.cc:114
#2 0x00000000014e210e in ggc_internal_cleared_alloc (s=<optimized out>)
at
/var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/ggc.h:149
#3 ggc_alloc_cleared_tree_node_stat (s=<optimized out>)
at
/var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/ggc.h:325
#4 make_node (code=code@entry=BASELINK) at
/var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/tree.cc:1218
#5 0x0000000000ba1b6c in build_baselink (binfo=0x7ffff7961720,
access_binfo=0x7ffff7961720, functions=0x7ffff797a4c0, optype=0x0)
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=<optimized out>,
name=<optimized out>, protect=protect@entry=0,
want_type=want_type@entry=false, complain=complain@entry=3,
afi=afi@entry=0x0)
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=lambda@entry=0x7ffff797c690)
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=0x7ffff797c690)
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=0x7ffff7976688)
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=<optimized out>,
local_entity=<optimized out>, function=<optimized out>)
at
/var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp/mangle.cc:2175
#11 write_name (decl=0x7ffff7976688, ignore_local_scope=<optimized out>)
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=0x7ffff797c690)
at
/var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/tree.h:3654
#13 write_type (type=0x7ffff797c690) 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=0x7ffff797cb28)
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=0x7ffff797e168,
method_p=<optimized out>, decl=<optimized out>)
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=<optimized out>)
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=0x7ffff7976688)
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=<optimized out>,
local_entity=<optimized out>, function=<optimized out>)
at
/var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp/mangle.cc:2175
#19 write_name (decl=0x7ffff7976688, ignore_local_scope=<optimized out>)
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=0x7ffff797e168,
method_p=<optimized out>, decl=<optimized out>)
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=<optimized out>)
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=0x7ffff7976688)
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=0x7ffff797c690)
at
/var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp/mangle.cc:1257
#1082283 write_prefix (node=0x7ffff797c690)
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=0x7ffff797da00)
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=<optimized out>,
local_entity=<optimized out>, function=<optimized out>)
at
/var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp/mangle.cc:2175
#1082286 write_name (decl=0x7ffff797da00, ignore_local_scope=<optimized out>)
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=0x7ffff797da00)
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=0x7ffff797da00,
top_level=true)
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=0x7ffff797da00)
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=0x7ffff797da00)
at
/var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cp/mangle.cc:4129
#1082291 mangle_decl (decl=0x7ffff797da00)
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=decl@entry=0x7ffff797da00)
at
/var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/tree.cc:743
#1082293 0x0000000000de26a4 in dwarf2out_early_finish (filename=0x2ffdfb0
"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/dwarf2out.cc:32981
#1082294 0x0000000000d416f0 in symbol_table::finalize_compilation_unit
(this=0x7ffff77c9000)
at
/var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/cgraphunit.cc:2569
#1082295 0x00000000011f6db9 in compile_file ()
at
/var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/toplev.cc:471
#1082296 0x000000000095e237 in do_compile (no_backend=false)
at
/var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/toplev.cc:2125
#1082297 toplev::main (this=this@entry=0x7fffffffd866, argc=<optimized out>,
argc@entry=15, argv=<optimized out>,
argv@entry=0x7fffffffd998) at
/var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/toplev.cc:2277
#1082298 0x000000000095ff7b in main (argc=15, argv=0x7fffffffd998)
at
/var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/main.cc:39
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/108706] [13 Regression] Indefinite recursion when compiling gcc/testsuite/g++.dg/cpp23/static-operator-call5.C w/ -g
2023-02-08 3:05 [Bug c++/108706] New: [13 Regression] Indefinite recursion when compiling gcc/testsuite/g++.dg/cpp23/static-operator-call5.C w/ -g asolokha at gmx dot com
@ 2023-02-08 13:03 ` jakub at gcc dot gnu.org
2023-03-06 20:37 ` jason at gcc dot gnu.org
2023-03-07 19:56 ` jason at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-02-08 13:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108706
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2023-02-08
Target Milestone|--- |13.0
Priority|P3 |P1
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
Keywords| |ABI
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
It is in the PR108526 part of the test (I've screwed up applying the PR108525
fix and fixed it in r13-5737).
The endless recursion is during mangling, I'm afraid I don't know how it should
mangle.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/108706] [13 Regression] Indefinite recursion when compiling gcc/testsuite/g++.dg/cpp23/static-operator-call5.C w/ -g
2023-02-08 3:05 [Bug c++/108706] New: [13 Regression] Indefinite recursion when compiling gcc/testsuite/g++.dg/cpp23/static-operator-call5.C w/ -g asolokha at gmx dot com
2023-02-08 13:03 ` [Bug c++/108706] " jakub at gcc dot gnu.org
@ 2023-03-06 20:37 ` jason at gcc dot gnu.org
2023-03-07 19:56 ` jason at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2023-03-06 20:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108706
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
Status|NEW |ASSIGNED
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/108706] [13 Regression] Indefinite recursion when compiling gcc/testsuite/g++.dg/cpp23/static-operator-call5.C w/ -g
2023-02-08 3:05 [Bug c++/108706] New: [13 Regression] Indefinite recursion when compiling gcc/testsuite/g++.dg/cpp23/static-operator-call5.C w/ -g asolokha at gmx dot com
2023-02-08 13:03 ` [Bug c++/108706] " jakub at gcc dot gnu.org
2023-03-06 20:37 ` jason at gcc dot gnu.org
@ 2023-03-07 19:56 ` jason at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2023-03-07 19:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108706
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed in r13-6533-g4f181f9c7ee3ef
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-03-07 19:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-08 3:05 [Bug c++/108706] New: [13 Regression] Indefinite recursion when compiling gcc/testsuite/g++.dg/cpp23/static-operator-call5.C w/ -g asolokha at gmx dot com
2023-02-08 13:03 ` [Bug c++/108706] " jakub at gcc dot gnu.org
2023-03-06 20:37 ` jason at gcc dot gnu.org
2023-03-07 19:56 ` jason at gcc dot gnu.org
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).