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

--- Comment #3 from fiesh at zefix dot tv ---
Better, self contained problem case:

class A
{
        void f(int a);
        int g();
};

void A::f(int a) {}

int A::g()
{
        auto r = [&] (auto x) { f(*x); };
        int * p;
        r(p);
}

Reply via email to