PR c++/79294 - ICE with invalid template argument
authorJason Merrill <jason@redhat.com>
Fri, 3 Feb 2017 19:44:21 +0000 (14:44 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 3 Feb 2017 19:44:21 +0000 (14:44 -0500)
commit99be38ec6a484b92940c2d415e14db33ebfb19bc
treee8b2d429ae4e5e7f849bd9e5d2b838cecf0f8668
parent10613537a958bf1e73679e93f92e7e1032738b47
PR c++/79294 - ICE with invalid template argument

* pt.c (convert_nontype_argument_function): Check value-dependence.
(convert_nontype_argument): Don't check it here for function ptrs.

From-SVN: r245168
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/template/error57.C [new file with mode: 0644]