[Bug c++/85093] [7/8 Regression] wrong number of template arguments does not trigger error when one argument is variadic
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 29 19:39:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85093
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Mar 29 19:38:41 2018
New Revision: 258964
URL: https://gcc.gnu.org/viewcvs?rev=258964&root=gcc&view=rev
Log:
PR c++/85093 - too many template args with pack expansion.
* pt.c (coerce_template_parms): Keep pack expansion args that will
need to be empty.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/variadic-empty1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
More information about the Gcc-bugs
mailing list