https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78219
--- Comment #1 from janus at gcc dot gnu.org --- My version of the Fortran 2008 standard has: R752 forall-header is ( [ type-spec :: ] forall-triplet-spec-list [, scalar-mask-expr ] ) and C735 (R752) type-spec shall specify type integer. Actually it seems that not only specifying a kind is new, but specifying the type at all (which is restricted to integer anyway). gfortran also rejects this simpler version (which only specifies the type, but no explicit kind): forall (integer :: i = 1:10)