https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100612
--- Comment #9 from Jonathan O'Connor <jonathan.oconnor at protonmail dot com> --- I'd already figured out the workaround using a static member function calling the non-static member function. But the lambda version is nicer!