https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90539
--- Comment #41 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Just noticed that this causes a regression in gfortran.fortran-torture/execute/arrayarg.f90 , but only at certain optimization levels. Oh well... need to look some more.