This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/78219] [F08] specifying the kind of a FORALL index in the header
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 05 Nov 2016 12:12:13 +0000
- Subject: [Bug fortran/78219] [F08] specifying the kind of a FORALL index in the header
- Auto-submitted: auto-generated
- References: <bug-78219-4@http.gcc.gnu.org/bugzilla/>
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)