PR c++/86932 - missed SFINAE with empty pack.
The issue here was that when processing the explicit template args in fn_type_unification we added an empty argument pack for the parameter pack, so we never tried to do any deduction for it, and therefore never looked at its type. We need that empty pack behavior for partial ordering, but we don't want it here, so let's make it conditional on tf_partial. * pt.c (coerce_template_parms): Don't add an empty pack if tf_partial. (fn_type_unification): Pass tf_partial to coerce_template_parms. From-SVN: r269965
Showing
gcc/testsuite/g++.dg/cpp0x/sfinae65.C
0 → 100644
Please
register
or
sign in
to comment