https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71694
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- The C++ FE identifies such types with CLASSTYPE_NON_LAYOUT_POD_P (t) || CLASSTYPE_EMPTY_P (t) where only CLASSTYPE_NON_LAYOUT_POD_P is interesting to us. Only available in struct lang_type. Possibly able to expose that via a new langhook.