https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66519
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |trippels at gcc dot gnu.org --- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- Confirmed. It is a stack overflow caused by endless recursion: #0 ggc_internal_alloc (size=size@entry=40, f=f@entry=0x0, s=s@entry=0, n=n@entry=1) at ../../gcc/gcc/ggc-page.c:1389 #1 0x0000000000fe8810 in ggc_internal_alloc (s=40) at ../../gcc/gcc/ggc.h:134 #2 ggc_alloc_tree_node_stat (s=40) at ../../gcc/gcc/ggc.h:286 #3 tree_cons_stat (purpose=purpose@entry=0x7ffff71f3c78, value=0x7ffff7201348, chain=chain@entry=0x0) at ../../gcc/gcc/tree.c:2905 #4 0x00000000006c193f in tsubst_pack_expansion (t=0x7ffff71f3d20, args=args@entry=0x7ffff72002d0, complain=complain@entry=0, in_decl=in_decl@entry=0x7ffff71f7080) at ../../gcc/gcc/cp/pt.c:11015 #5 0x00000000006bdad2 in tsubst_decl (t=t@entry=0x7ffff71f7080, args=args@entry=0x7ffff72002d0, complain=complain@entry=0) at ../../gcc/gcc/cp/pt.c:12048 #6 0x00000000006c1842 in tsubst_pack_expansion (t=0x7ffff70a3540, args=args@entry=0x7ffff72002d0, complain=complain@entry=0, in_decl=in_decl@entry=0x7ffff71f7100) at ../../gcc/gcc/cp/pt.c:10953 #7 0x00000000006b11f0 in tsubst_copy_and_build (t=0x7ffff70af0e0, args=args@entry=0x7ffff72002d0, complain=0, in_decl=in_decl@entry=0x7ffff71f7100, function_p=function_p@entry=false, integral_constant_expression_p=integral_constant_expression_p@entry=false) at ../../gcc/gcc/cp/pt.c:16554 #8 0x00000000006b3e3a in tsubst (t=<optimized out>, args=0x7ffff72002d0, complain=0, in_decl=0x7ffff71f7100) at ../../gcc/gcc/cp/pt.c:13588 #9 0x00000000006bcc45 in tsubst_decl (t=0x7ffff71f7100, args=<optimized out>, complain=complain@entry=0) at ../../gcc/gcc/cp/pt.c:12092 #10 0x00000000006b49d8 in tsubst (t=0x7ffff71f7100, args=0x7ffff72002d0, complain=0, in_decl=0x7ffff71f7100) at ../../gcc/gcc/cp/pt.c:12874 #11 0x00000000006be82e in tsubst_decl (t=t@entry=0x7ffff71f7080, args=args@entry=0x7ffff72002d0, complain=complain@entry=0) at ../../gcc/gcc/cp/pt.c:12057 #12 0x00000000006c1842 in tsubst_pack_expansion (t=0x7ffff70a3540, args=args@entry=0x7ffff72002d0, complain=complain@entry=0, in_decl=in_decl@entry=0x7ffff71f7100) at ../../gcc/gcc/cp/pt.c:10953 #13 0x00000000006b11f0 in tsubst_copy_and_build (t=0x7ffff70af0e0, args=args@entry=0x7ffff72002d0, complain=0, in_decl=in_decl@entry=0x7ffff71f7100, function_p=function_p@entry=false, integral_constant_expression_p=integral_constant_expression_p@entry=false) at ../../gcc/gcc/cp/pt.c:16554 #14 0x00000000006b3e3a in tsubst (t=<optimized out>, args=0x7ffff72002d0, complain=0, in_decl=0x7ffff71f7100) at ../../gcc/gcc/cp/pt.c:13588 #15 0x00000000006bcc45 in tsubst_decl (t=0x7ffff71f7100, args=<optimized out>, complain=complain@entry=0) at ../../gcc/gcc/cp/pt.c:12092 #16 0x00000000006b49d8 in tsubst (t=0x7ffff71f7100, args=0x7ffff72002d0, complain=0, in_decl=0x7ffff71f7100) at ../../gcc/gcc/cp/pt.c:12874 #17 0x00000000006be82e in tsubst_decl (t=t@entry=0x7ffff71f7080, args=args@entry=0x7ffff72002d0, complain=complain@entry=0) at ../../gcc/gcc/cp/pt.c:12057 #18 0x00000000006c1842 in tsubst_pack_expansion (t=0x7ffff70a3540, args=args@entry=0x7ffff72002d0, complain=complain@entry=0, in_decl=in_decl@entry=0x7ffff71f7100) at ../../gcc/gcc/cp/pt.c:10953 ...