https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86277
--- Comment #17 from Mikael Morin <mikael at gcc dot gnu.org> --- Looking further at the implementation of gfc_trans_allocate_array_storage, the size vs elem_size dance can be removed from my patch, as size is almost unused in the onstack case.