https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101689
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Reduced testcase: struct A { virtual void foo (int x) { C e(&f, &x); bar (); } virtual bool bar (); struct C { C (int *, int *); }; int f; }; struct B : A {} d;