https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114632
waffl3x <waffl3x at protonmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |waffl3x at protonmail dot com --- Comment #2 from waffl3x <waffl3x at protonmail dot com> --- I have a feeling Bug 112810 is related as providing a return type for the lambda works around this bug. struct S {}; auto lambda = [](this auto& self, const int x) -> void {}; int main() { void (*func)(S&, int) = lambda; return 0; } https://gcc.godbolt.org/z/WE5qdvYcP