https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88869
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Fri Feb 22 02:08:05 2019 New Revision: 269093 URL: https://gcc.gnu.org/viewcvs?rev=269093&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction63.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c