https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90303
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- No, TYPE_CANONICAL (TYPE_MAIN_VARIANT (type)) is also NULL, for the same reasons. It is a template instantiation with a template parameter that needs structural equality.