r244962 - in /trunk/gcc: cp/ChangeLog cp/cp-tre...
abutcher@gcc.gnu.org
abutcher@gcc.gnu.org
Fri Jan 27 07:59:00 GMT 2017
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
More information about the Gcc-cvs
mailing list