https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91771
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The other thing to note is that for "d.do_foo", the front-end decides it is direct call to Derived::do_foo and IPA is not involved there.