P0624R2 - Default constructible and assignable stateless lambdas
authorJakub Jelinek <jakub@redhat.com>
Thu, 14 Jun 2018 19:05:13 +0000 (21:05 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 14 Jun 2018 19:05:13 +0000 (21:05 +0200)
commitbc04d1ff62db94aea033829249c8b09f4b7abff1
tree4b7a6b953f09d9e68ba6520ded1c9d913441db6c
parent2d26d4ce69d8510e32a5a4b9653de9dee0109f04
P0624R2 - Default constructible and assignable stateless lambdas

P0624R2 - Default constructible and assignable stateless lambdas
* method.c (synthesized_method_walk): For C++2a don't mark
sfk_constructor or sfk_copy_assignment as deleted if lambda has
no lambda-captures.

* g++.dg/cpp2a/lambda1.C: New test.
* g++.dg/cpp0x/lambda/lambda-ice2.C: Adjust expected diagnostics
for -std=c++2a.

From-SVN: r261605
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice2.C
gcc/testsuite/g++.dg/cpp2a/lambda1.C [new file with mode: 0644]