https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118078
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Do we need - && same_type_p (TYPE_MAIN_VARIANT (type), - current_class_type)) + && currently_open_class (TYPE_MAIN_VARIANT (type)) or something else?