This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/78219] [F08] specifying the kind of a FORALL index in the header


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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]