https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89358
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Jan Hubicka from comment #13) > I am testing the following: > Index: ipa-devirt.c > =================================================================== > --- ipa-devirt.c (revision 270280) > +++ ipa-devirt.c (working copy) > @@ -1282,6 +1282,22 @@ warn_types_mismatch (tree t1, tree t2, l > inform (loc_t2, "the incompatible type is defined here"); > } > > +static bool > +skip_in_fields_list_p (tree t) > +{ > + if (TREE_CODE (t) != FIELD_DECL) > + return true; > + /* C++ FE itroduces zero sized fields depending on -mstd setting, see s/-mstd/-std=/ Otherwise it looks right to me.