https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83138
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-11-24
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I can't reproduce "This used to work", before r183768 it used to be rejected:
pr83138.C:3:21: error: expansion pattern ‘char [][4]’ contains no argument
packs
pr83138.C:3:21: error: no matching function for call to ‘g(<unresolved
overloaded function type>)’
pr83138.C:3:21: note: candidate is:
pr83138.C:2:28: note: template<class T> void g(T)
pr83138.C:2:28: note: substitution of deduced template arguments resulted in
errors seen above
and since then it ICEs due to running out of stack (apparently endless
recursion in:
#9 0x00000000009f4458 in tsubst_pack_expansion (t=<type_pack_expansion
0x7fffefc14150>, args=<tree_vec 0x7fffefc10940>, complain=0,
in_decl=<parm_decl 0x7fffefae7180 args2>) at ../../gcc/cp/pt.c:11497
#10 0x00000000009fbc98 in tsubst_decl (t=<parm_decl 0x7fffefae7180 args2>,
args=<tree_vec 0x7fffefc10940>, complain=0) at ../../gcc/cp/pt.c:12711
#11 0x00000000009ff9b3 in tsubst (t=<parm_decl 0x7fffefae7180 args2>,
args=<tree_vec 0x7fffefc10940>, complain=0,
in_decl=<parm_decl 0x7fffefae7180 args2>) at ../../gcc/cp/pt.c:13577
#12 0x00000000009fc3f1 in tsubst_decl (t=<parm_decl 0x7fffefae7100 args>,
args=<tree_vec 0x7fffefc10940>, complain=0) at ../../gcc/cp/pt.c:12793
#13 0x00000000009f4458 in tsubst_pack_expansion (t=<type_pack_expansion
0x7fffefc14150>, args=<tree_vec 0x7fffefc10940>, complain=0,
in_decl=<parm_decl 0x7fffefae7180 args2>) at ../../gcc/cp/pt.c:11497
).