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 #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Sun May 29 08:27:07 2016
New Revision: 236860

URL: https://gcc.gnu.org/viewcvs?rev=236860&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.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv11.C
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/lambda-conv1.C
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/lambda-conv2.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/lambda.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog

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