https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81051
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The vtable is not set until after the call of the constructor of B::B which is after the call to f(this). When is the vtable supposed to be put in the this object?