re PR c++/71105 (lambdas with default captures improperly have function pointer conve...
authorPaolo Carlini <paolo.carlini@oracle.com>
Sun, 29 May 2016 08:29:46 +0000 (08:29 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 29 May 2016 08:29:46 +0000 (08:29 +0000)
commit036dc0a0571c61a55286a21e8e9ef58ddd913e73
treeac834b453bda5704a2846736cfcb58809712e130
parentb6d4f8e8549572f272cc03869a64d0d02af7ec70
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: r236861
gcc/cp/ChangeLog
gcc/cp/lambda.c