re PR c++/71105 (lambdas with default captures improperly have function pointer conve...
authorPaolo Carlini <paolo.carlini@oracle.com>
Sun, 29 May 2016 08:05:30 +0000 (08:05 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 29 May 2016 08:05:30 +0000 (08:05 +0000)
commitb6d4f8e8549572f272cc03869a64d0d02af7ec70
tree16034ed40b4135172a59cea525d3cd58ed21093e
parent4acc363412b717f54359c2edbea369a008ec0f53
re PR c++/71105 (lambdas with default captures improperly have function pointer conversions)

/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.

From-SVN: r236859
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv11.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/lambda-conv1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/lambda-conv2.C [new file with mode: 0644]