PR c++/78894 - ICE with class deduction and default arg
authorJason Merrill <jason@redhat.com>
Wed, 18 Jan 2017 16:44:27 +0000 (11:44 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 18 Jan 2017 16:44:27 +0000 (11:44 -0500)
commite3aeb9d39a884f805978f832ef92d817e114bfe9
treeaebf2c0583455aefc3774ee85d733e1f8cbb35e0
parent5807fb918d557400fd50431c1399cf1f131670ba
PR c++/78894 - ICE with class deduction and default arg

* pt.c (build_deduction_guide): Set DECL_PRIMARY_TEMPLATE.

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