[PR c++/81574] lambda capture of function reference
commitd46b9539e69f8b183765c93a432a2e027adb7036
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Nov 2017 13:18:09 +0000 (15 13:18 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Nov 2017 13:18:09 +0000 (15 13:18 +0000)
tree11000c7700a2d61a46ce3a7e455d12e6a4694c66
parentcf7b71bf0341e5fc0cb04c911ffc539b59d7db78
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254768 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/lambda.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr81574.C [new file with mode: 0644]