https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83549
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- With current trunk: $ ./cc1plus -quiet pr83549.C $ ./cc1plus -quiet pr83549.C -O1 pr83549.C:4:4: error: generic thunk code fails for method ‘virtual void C::_ZThn8_N1C3fooEz(...)’ which uses ‘...’ C c; ^ (likewise for -O2, -O3) on x86_64-linux.