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.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70832
Jonathan Wakely changed:
What|Removed |Added
Keywords||rejects-valid
Status|UNCON
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.
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.