https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87957
--- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I guess the middle-end relies on TYPE_NAME to have the TYPE_MAIN_VARIANT type rather than be qualified. The question if just here and it is possible to cope with that, or elsewhere too.