decl.c (poplevel): Don't warn about unused vars in template scope.
authorJason Merrill <jason@redhat.com>
Mon, 22 Sep 2014 16:31:09 +0000 (12:31 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 22 Sep 2014 16:31:09 +0000 (12:31 -0400)
commitaed67566921b2153c5af392ad095e04602aa036f
tree511d01f3ac904501b9f571501f3d79ac5b19265c
parentf421c516aa8df5cde8f0310d090562b01967583c
decl.c (poplevel): Don't warn about unused vars in template scope.

* decl.c (poplevel): Don't warn about unused vars in template scope.
* error.c (dump_decl): Handle variable templates.

From-SVN: r215472
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/error.c
gcc/testsuite/g++.dg/cpp1y/var-templ12.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/var-templ13.C [new file with mode: 0644]