[Bug c++/45976] optional template keyword is not accepted by g++

2017-06-30 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45976

Jason Merrill  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |8.0

--- Comment #3 from Jason Merrill  ---
That template keyword is not allowed in a declarator-id, but I've fixed GCC 8
to accept it with a pedwarn.

[Bug c++/45976] optional template keyword is not accepted by g++

2017-06-28 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45976

--- Comment #2 from Jason Merrill  ---
Author: jason
Date: Wed Jun 28 19:41:43 2017
New Revision: 249753

URL: https://gcc.gnu.org/viewcvs?rev=249753=gcc=rev
Log:
PR c++/45976 - error with ::template in declarator.

* pt.c (resolve_typename_type): Fix TEMPLATE_ID_EXPR handling.

Added:
trunk/gcc/testsuite/g++.dg/template/template-keyword1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c

[Bug c++/45976] optional template keyword is not accepted by g++

2017-06-27 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45976

Jason Merrill  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||jason at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |jason at gcc dot gnu.org

[Bug c++/45976] optional template keyword is not accepted by g++

2010-10-12 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45976

Jonathan Wakely redi at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2010.10.12 09:27:05
 Ever Confirmed|0   |1

--- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org 2010-10-12 
09:27:05 UTC ---
confirmed by Jason in PR 45964 comment 11