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

--- Comment #7 from Adam Butcher <abutcher at gcc dot gnu.org> ---
Author: abutcher
Date: Fri Jan 27 07:59:06 2017
New Revision: 244962

URL: https://gcc.gnu.org/viewcvs?rev=244962&root=gcc&view=rev
Log:
Fix PR c++/64382

        PR c++/64382
        * cp/parser.c (parsing_default_capturing_generic_lambda_in_template):
        New function.
        * cp/cp-tree.h: Declare it.
        * cp/semantics.c (finish_id_expression): Resolve names within a default
        capturing generic lambda defined within a template prior to
        instantiation to allow for captures to be added to the closure type.

        PR c++/64382
        * g++.dg/cpp1y/pr64382.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/pr64382.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to