PR c++/88820 - ICE with CTAD and member template used in DMI.
authorJason Merrill <jason@redhat.com>
Thu, 7 Mar 2019 16:15:56 +0000 (11:15 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 7 Mar 2019 16:15:56 +0000 (11:15 -0500)
commitae9b289201b6c6996b9c701109658adfb551327b
tree5904b313fcc2c714fdec4164b5f849dbbd1a1188
parent1738b52201b1ce28c9f869646f5412b8937ccfe6
PR c++/88820 - ICE with CTAD and member template used in DMI.

Here the problem was that in order to form a FUNCTION_DECL for foo<int> in
the uninstantiated template, we were trying to deduce template args for S
from the template parm itself, and failing.

* pt.c (do_class_deduction): Handle parm used as its own arg.

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