https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81113
--- Comment #1 from Nathan Sidwell <nathan at gcc dot gnu.org> --- 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. in expansion store_expr_with_bounds uses get_inner_reference to extract the field, and that returns a BLKmode MEM_REF. it then tries to use convert_move to turn that into V8SFmode, but convert_move's not expecting a BLKmode source. Not sure if the FIELD_DECL's mode is the error, or store_expr_with_bounds needs to become smarter?