This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]