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++/59113] [c++1y] ICE using auto as parameter in local function


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59113

--- Comment #1 from abutcher at gcc dot gnu.org ---
Author: abutcher
Date: Mon Nov 25 07:43:55 2013
New Revision: 205343

URL: http://gcc.gnu.org/viewcvs?rev=205343&root=gcc&view=rev
Log:
Disallow implicit function templates in local functions unless defining a
lambda.

gcc/cp/
    PR c++/59112
    PR c++/59113
    * parser.c (cp_parser_parameter_declaration_clause): Disallow implicit
    function templates in local functions unless defining a lambda.

gcc/testsuite/
    PR c++/59112
    PR c++/59113
    g++.dg/cpp1y/pr58533.C: Updated testcase.
    g++.dg/cpp1y/pr59112.C: New testcase.
    g++.dg/cpp1y/pr59113.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/pr59112.C
    trunk/gcc/testsuite/g++.dg/cpp1y/pr59113.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp1y/pr58533.C


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