This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81574] ICE on valid C++14 code: in canonicalize_component_ref, at gimplify.c:2481
- From: "nathan at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Nov 2017 13:18:40 +0000
- Subject: [Bug c++/81574] ICE on valid C++14 code: in canonicalize_component_ref, at gimplify.c:2481
- Auto-submitted: auto-generated
- References: <bug-81574-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81574
--- Comment #4 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
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