c++: Fix ICE-after-error on partial spec [92068]
authorJason Merrill <jason@redhat.com>
Sat, 14 Mar 2020 21:10:39 +0000 (17:10 -0400)
committerJason Merrill <jason@redhat.com>
Sat, 14 Mar 2020 21:13:25 +0000 (17:13 -0400)
commit3a285529ee338ef2867ae7add26b6493f004bf0d
treec4ddceeb69449d9780ea7659e97410fab77ed623
parentb3b0c671cc341fd04afc045a8d42d7a845d7f73c
c++: Fix ICE-after-error on partial spec [92068]

Here the template arguments for the partial specialization are valid
arguments for the template, but not for a partial specialization, because
'd' can never be deduced to anything other than an empty pack.

gcc/cp/ChangeLog
2020-03-14  Jason Merrill  <jason@redhat.com>

PR c++/92068
* pt.c (process_partial_specialization): Error rather than crash on
extra pack expansion.
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/variadic178.C [new file with mode: 0644]