]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/testsuite/ChangeLog
Fix PR c++/69098 (bogus errors with static data member template)
authorPatrick Palka <ppalka@gcc.gnu.org>
Fri, 12 Feb 2016 01:11:52 +0000 (01:11 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Fri, 12 Feb 2016 01:11:52 +0000 (01:11 +0000)
commit38d795d27c34ebc70a944009d82d20415ec81a64
tree67075b34dd1ed4122cb9745ae312a3b6d3897034
parent3ac29b0f88c42ffee491a8dade51b71c147ecad0
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.

From-SVN: r233365
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/69098-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/69098.C [new file with mode: 0644]