[Bug c++/70832] move-assignment of lambdas calls copy-assignment for captures

2021-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70832 --- Comment #4 from Andrew Pinski --- >clang++ 3.7 works clang 4.0 and above rejects both tests now with the same message as GCC. Are we sure this was not a clang bug which was fixed? Also ICC and MSVC rejects the code for the same reason too.

[Bug c++/70832] move-assignment of lambdas calls copy-assignment for captures

2016-04-28 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70832 Jonathan Wakely changed: What|Removed |Added Keywords||rejects-valid Status|UNCON

[Bug c++/70832] move-assignment of lambdas calls copy-assignment for captures

2016-04-28 Thread blaffablaffa at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70832 --- Comment #2 from Lorenzo Pistone --- I should add also that this makes impossible to assign lambdas with move-only captures to a std::function.

[Bug c++/70832] move-assignment of lambdas calls copy-assignment for captures

2016-04-27 Thread blaffablaffa at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70832 --- Comment #1 from Lorenzo Pistone --- correction, it calls the copy assignment operator, not the copy constructor.