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

--- Comment #12 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Fri Feb 12 01:11:52 2016
New Revision: 233365

URL: https://gcc.gnu.org/viewcvs?rev=233365&root=gcc&view=rev
Log:
Fix PR c++/69098 (bogus errors with static data member template)

gcc/cp/ChangeLog:

        PR c++/69098
        * pt.c (lookup_and_finish_template_variable): New function,
        extracted from ...
        (tsubst_copy_and_build) [TEMPLATE_ID_EXPR]: ... here.
        (tsubst_qualified_id): Consider that EXPR might be a variable
        template.
        * typeck.c (check_template_keyword): Don't emit an error
        if DECL is a variable template.

gcc/testsuite/ChangeLog:

        PR c++/69098
        * g++.dg/cpp1y/69098.C: New test.
        * g++.dg/cpp1y/69098-2.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/69098-2.C
    trunk/gcc/testsuite/g++.dg/cpp1y/69098.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to