r254768 - in /trunk/gcc: cp/ChangeLog cp/lambda...

nathan@gcc.gnu.org nathan@gcc.gnu.org
Wed Nov 15 13:18:00 GMT 2017


Author: nathan
Date: Wed Nov 15 13:18:09 2017
New Revision: 254768

URL: https://gcc.gnu.org/viewcvs?rev=254768&root=gcc&view=rev
Log:
[PR c++/81574] lambda capture of function reference

https://gcc.gnu.org/ml/gcc-patches/2017-11/msg01200.html
	PR c++/81574
	* lambda.c (lambda_capture_field_type): Function references are
	always catured by reference.

	PR c++/81574
	* g++.dg/cpp1y/pr81574.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/pr81574.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/lambda.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list