https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106817
--- Comment #1 from Mikael Morin <mikael at gcc dot gnu.org> --- PR92178 is vaguely related. The tests are very similar, but that other PR is about allocatables whereas this one isn’t, so I think they are different.