https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92576

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Dec 17 21:46:11 2019
New Revision: 279472

URL: https://gcc.gnu.org/viewcvs?rev=279472&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/var-templ65.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/g++.dg/cpp1y/var-templ32.C

Reply via email to