https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84155
Thomas Koenig <tkoenig at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-01-31 Ever confirmed|0 |1 --- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- The interesting thing is that the allocate statement in subroutine particle_read_raw (array) class(array_t), intent(out) :: array allocate (array%child (1)) ! comment this out end subroutine particle_read_raw is _not_ executed. As said in the original message, it is possible to uncomment it, or even to uncomment the whole subroutine (which is unused), and things then work as expected.