re PR c++/66260 ([C++14] Failure to compile variable template with recursively define...
authorJason Merrill <jason@redhat.com>
Wed, 5 Aug 2015 17:56:14 +0000 (13:56 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 5 Aug 2015 17:56:14 +0000 (13:56 -0400)
commitdc062b4986328bfeec3ebd744a9c116e28828bf0
tree2ca6d972f81bab5e224ba92c9f66113f52c5d92f
parent85171e7877e60e2af5a76b0961e3ee8903bd084f
re PR c++/66260 ([C++14] Failure to compile variable template with recursively defined partial specialization)

PR c++/66260
PR c++/66596
PR c++/66649
PR c++/66923
* pt.c (lookup_template_variable): Use NULL_TREE for type.
(instantiate_template_1): Also set DECL_TI_ARGS based on
the immediate parent.
(tsubst_copy_and_build) [TEMPLATE_ID_EXPR]: Handle variable templates.
(finish_template_variable): Add complain parm.
* cp-tree.h: Adjust.

From-SVN: r226642
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1y/var-templ32.C
gcc/testsuite/g++.dg/cpp1y/var-templ35.C
gcc/testsuite/g++.dg/cpp1y/var-templ36.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/var-templ38.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/var-templ39.C [new file with mode: 0644]