PR c++/92576 - redeclaration of variable template.
authorJason Merrill <jason@redhat.com>
Tue, 17 Dec 2019 21:46:11 +0000 (16:46 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 17 Dec 2019 21:46:11 +0000 (16:46 -0500)
commit9c7b2b0ba8687f92f7beab2e3615a1107c7063db
treeca9bda481734a541628ddfb427d57217045f8c22
parent490a091fa7397e34b04e72634c3d37d8a4e223a4
PR c++/92576 - redeclaration of variable template.

The variable templates patch way back when forgot to add handling here.  The
simplest answer seems to be recursing to the underlying declaration.

* decl.c (redeclaration_error_message): Recurse for variable
templates.

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