https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81113
Andrew Pinski changed:
What|Removed |Added
Resolution|--- |FIXED
Keywords|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81113
--- Comment #2 from Richard Biener ---
This kind of arbitrary mixing of ISA options on types vs functions isn't really
supported. All that context dependent mode selection stuff is a hack as it
doesn't extend to containers or as you see decls in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81113
--- Comment #1 from Nathan Sidwell ---
Upon investigation, I discover that Bad::val field_decl gets BLKmode, because
vector_type_mode is being used outside of an AVX target option region.
Simply using TYPE_MODE_RAW in layout_type dies horribly.