This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69098] [5/6 regression] Member function pointer template flagged with 'is not a function template'
- From: "ppalka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 12 Feb 2016 01:12:24 +0000
- Subject: [Bug c++/69098] [5/6 regression] Member function pointer template flagged with 'is not a function template'
- Auto-submitted: auto-generated
- References: <bug-69098-4 at http dot gcc dot gnu dot org/bugzilla/>
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