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