https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89491
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Dávid Bolvanský from comment #2) > Right, static helps. > > What about more complex examples, like inlining vtables? > https://gcc.godbolt.org/z/ZXkRYa Your example is much more complex. The vtable might be constant but where the vtable is stored is not.