[Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters
abutcher at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 26 18:34:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61537
--- Comment #9 from Adam Butcher <abutcher at gcc dot gnu.org> ---
Author: abutcher
Date: Thu Jun 26 18:33:57 2014
New Revision: 212045
URL: https://gcc.gnu.org/viewcvs?rev=212045&root=gcc&view=rev
Log:
Fix PR c++/61537
* parser.c (cp_parser_elaborated_type_specifier): Only consider template
parameter lists outside of function parameter scope.
* g++.dg/template/pr61537.C: New testcase.
Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/template/pr61537.C
Modified:
branches/gcc-4_9-branch/gcc/cp/ChangeLog
branches/gcc-4_9-branch/gcc/cp/parser.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list