[Bug c++/96082] [9/10/11 Regression] GCC rejects the template disambiguator with "typename"
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 4 17:41:55 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96082
--- 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:97def1f34c134d78d4423e9ac3e9b262417ea390
commit r11-2560-g97def1f34c134d78d4423e9ac3e9b262417ea390
Author: Marek Polacek <polacek@redhat.com>
Date: Tue Aug 4 09:35:25 2020 -0400
c++: Template keyword following :: [PR96082]
In r9-4235 I tried to make sure that the template keyword follows
a nested-name-specifier. :: is a valid nested-name-specifier, so
I also have to check 'globalscope' before giving the error.
gcc/cp/ChangeLog:
PR c++/96082
* parser.c (cp_parser_elaborated_type_specifier): Allow
'template' following ::.
gcc/testsuite/ChangeLog:
PR c++/96082
* g++.dg/template/template-keyword3.C: New test.
More information about the Gcc-bugs
mailing list