[PR c++/81574] lambda capture of function reference
authorNathan Sidwell <nathan@acm.org>
Wed, 15 Nov 2017 13:18:09 +0000 (13:18 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 15 Nov 2017 13:18:09 +0000 (13:18 +0000)
commit03ab2eb725851203ccc34ca3210439801812a6be
tree11000c7700a2d61a46ce3a7e455d12e6a4694c66
parent17bae2cadb4e28940545cc4fdb6223ca7e21ed60
[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.

From-SVN: r254768
gcc/cp/ChangeLog
gcc/cp/lambda.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr81574.C [new file with mode: 0644]