[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 05:13:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61537

--- Comment #7 from Adam Butcher <abutcher at gcc dot gnu.org> ---
Author: abutcher
Date: Thu Jun 26 05:12:52 2014
New Revision: 212008

URL: https://gcc.gnu.org/viewcvs?rev=212008&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:
    trunk/gcc/testsuite/g++.dg/template/pr61537.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list