PR c++/88869 - C++17 ICE with CTAD and explicit specialization.
authorJason Merrill <jason@redhat.com>
Fri, 22 Feb 2019 02:08:05 +0000 (21:08 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 22 Feb 2019 02:08:05 +0000 (21:08 -0500)
commitc8b7e64d363069c6682bdeb51ba397e8bd4a4f9e
treea9da6338120e570e260212e3e5db836d65e130bc
parent148864cb8c972b4c87e2e6a3183a83047666edcb
PR c++/88869 - C++17 ICE with CTAD and explicit specialization.

The members of an explicit specialization of a class template don't have the
template parameters of that class template, so we shouldn't try to provide
arguments for them.  Only set outer_args when the class is an instantiation.

* pt.c (do_class_deduction): Don't include explicit specialization
args in outer_args.

From-SVN: r269093
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1z/class-deduction63.C [new file with mode: 0644]