https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86735
--- Comment #13 from janus at gcc dot gnu.org --- gfortran.fortran-torture/execute/in-pack.f90 in the testsuite exhibits the same problem as comment 0, I think. It also contains Fortran array operations and fails with "-march=skylake-avx512 -Ofast". See PR 86831 comment 5.