https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88215
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 45100 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45100&action=edit gcc9-pr88215.patch Untested fix. build_type_attribute_qual_variant creates distinct type copies, which don't have the same main variant, just are compatible types.