This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/69098] [5/6 regression] Member function pointer template flagged with 'is not a function template'


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]