[Bug c++/94336] template keyword accepted before destructor names
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 27 02:08:49 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94336
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Marek Polacek <mpolacek@gcc.gnu.org>:
https://gcc.gnu.org/g:71d69548a1b2c85220ac6354564fd272beb9263f
commit r10-7408-g71d69548a1b2c85220ac6354564fd272beb9263f
Author: Marek Polacek <polacek@redhat.com>
Date: Thu Mar 26 16:07:17 2020 -0400
c++: template keyword accepted before destructor names [PR94336]
This came up on the C++ core list recently. We don't diagnose the case
when 'template' is followed by a destructor name which is not permitted
by [temp.names]/5.
PR c++/94336 - template keyword accepted before destructor names.
* parser.c (cp_parser_unqualified_id): Give an error when
'template'
is followed by a destructor name.
* g++.dg/template/template-keyword2.C: New test.
More information about the Gcc-bugs
mailing list