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

--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Looks like static op() lambdas are affected too:

struct S {};

auto lambda = [](auto, const int x) static /* -> void */ {};

int main()
{
    void (*func)(int, int) = lambda;
    return 0;
}

Reply via email to