https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72808
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 #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 40150 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40150&action=edit gcc7-pr72808.patch Untested fix. Alternatively we could just update TYPE_FIELDS of the variant types.