https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80564

--- Comment #2 from Eric Fiselier <eric at efcs dot ca> ---
Note that explicitly providing a return type for the lambda avoids this compile
error. Example:

---
#include <functional>

int main() {
    int i;
    std::bind([] (auto& x) -> void {x = 1;}, i)(); // OK!
}

---

Reply via email to