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++/71105] [6/7 regression] lambdas with default captures improperly have function pointer conversions


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71105

--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Sun May 29 08:29:46 2016
New Revision: 236861

URL: https://gcc.gnu.org/viewcvs?rev=236861&root=gcc&view=rev
Log:
/cp
2016-05-29  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/71105
        * lambda.c (maybe_add_lambda_conv_op): Early return also when
        LAMBDA_EXPR_DEFAULT_CAPTURE_MODE != CPLD_NONE.

/testsuite
2016-05-29  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/71105
        * g++.dg/cpp0x/lambda/lambda-conv11.C: New.
        * g++.dg/cpp1y/lambda-conv1.C: Likewise.
        * g++.dg/cpp1y/lambda-conv2.C: Likewise.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/lambda.c

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