https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88869
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Fri Mar 8 21:40:21 2019 New Revision: 269513 URL: https://gcc.gnu.org/viewcvs?rev=269513&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: branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp1z/class-deduction63.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/pt.c