pt.c (check_explicit_specialization): Don't complain about non-template variable.
authorJason Merrill <jason@redhat.com>
Tue, 26 Aug 2014 02:47:42 +0000 (22:47 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 26 Aug 2014 02:47:42 +0000 (22:47 -0400)
commit991eeb496254f48c059f8b9ddb587ee91bf3be96
tree2e5652c761d9e4156c3c97c6d2c3fdc91cb467c0
parentf348033d1e1df30e6238506bee3a154a852a96d3
pt.c (check_explicit_specialization): Don't complain about non-template variable.

* pt.c (check_explicit_specialization): Don't complain about
non-template variable.
(template_for_substitution): Allow variable templates.
(check_template_variable): Fix logic for member var template.
* decl.c (start_decl): Don't complain about extra template header
here.

From-SVN: r214487
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1y/var-templ10.C [new file with mode: 0644]