PR c++/71569 - ICE with redundant args on member variable template.
authorJason Merrill <jason@redhat.com>
Thu, 1 Mar 2018 16:00:34 +0000 (11:00 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 1 Mar 2018 16:00:34 +0000 (11:00 -0500)
commit303a1e75148a5628bf705c154c62c5ffa6c03542
tree268ac9d8cc511d1f9c3009f4e88be1836fe97011
parent99daa7a9eeffa553d3fd3b8dcf6dd721441921c6
PR c++/71569 - ICE with redundant args on member variable template.

* decl.c (start_decl): Handle partial specialization of member
variable template.
* pt.c (determine_specialization): Allow partial specialization
of member variable template without specializing enclosing class.
(process_partial_specialization): Improve error message.

Co-Authored-By: Alexandre Oliva <aoliva@redhat.com>
From-SVN: r258102
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1y/var-templ58.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/var-templ58a.C [new file with mode: 0644]