https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45375 Bug 45375 depends on bug 45791, which changed state.
Bug 45791 Summary: Missed devirtualization https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45791 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED