https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96194
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- --- gcc/expr.c.jj 2020-07-13 19:09:33.173872178 +0200 +++ gcc/expr.c 2020-07-14 13:07:26.228801996 +0200 @@ -8382,7 +8382,9 @@ expand_constructor (tree exp, rtx target || GET_CODE (target) == PARALLEL || modifier == EXPAND_STACK_PARM /* Also make a temporary if the store is to volatile memory, to avoid individual accesses to aggregate members. */ - || (GET_CODE (target) == MEM && MEM_VOLATILE_P (target))) + || (GET_CODE (target) == MEM + && MEM_VOLATILE_P (target) + && !TREE_ADDRESSABLE (TREE_TYPE (exp)))) { if (avoid_temp_mem) return NULL_RTX; fixes this - even when volatile, for non-POD types the middle-end may not create temporaries period.