This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/81574] ICE on valid C++14 code: in canonicalize_component_ref, at gimplify.c:2481


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]