https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68949
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- And, the reason why it is supposedly different is that this all happens during gimplification of the Class::Class() ctor, and DECL_SAVED_TREE of both __base_ctor and __comp_ctor of Sub::Sub() has been initially non-NULL, but during gimplification of those functions has been cleared. And between the good and bad compiler the difference is just in the cgraph decision which function should be gimplified first and which should be gimplified later.