decl.c (start_decl): Look through member variable template.
authorJason Merrill <jason@redhat.com>
Mon, 25 Aug 2014 12:48:22 +0000 (08:48 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 25 Aug 2014 12:48:22 +0000 (08:48 -0400)
commit3749134042ab5f54d0c30af1ec336e7132ac9bc8
tree914ada4956cb315718830d69e63396294e3709e8
parent2167dc924b20c492fcf1d47a45de0dd8b25c3cae
decl.c (start_decl): Look through member variable template.

* decl.c (start_decl): Look through member variable template.
* pt.c (tsubst_decl) [VAR_DECL]: Handle member variable templates.
* decl2.c (grokfield): Set DECL_CONTEXT earlier on
variables.

From-SVN: r214420
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1y/pr60626.C
gcc/testsuite/g++.dg/cpp1y/var-templ8.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/var-templ9.C [new file with mode: 0644]