[gfortran, patch] PR29441: Error out for non-standard intrinsics in initialization expression
Tobias Burnus
burnus@net-b.de
Sat Dec 2 12:05:00 GMT 2006
Hi,
Toon Moene wrote:
>> We used to only error out for code such as
>> real, parameter :: pi = 4.*atan(1.0)
>> if -pedantic was given, even with -std=f95.
> Note that this restriction will be lifted in Fortran 2008.
I might read Fortran 2003 wrongly, but I think alreay Fortran 2003
allows this
(cf. PR 29962):
Fortran 95, Section 7.1.6.1:
"(4) An elemental intrinsic function reference of type integer or
character where each argument is an initialization expression of type
integer or character"
Fortran 2003, Section 7.1.7:
"A reference to an elemental standard intrinsic function, where each
argument is an initialization expression"
Actually, I think Fortran 2003 allows to use matmul and dot_product,
which is currently unsupported by gfortran (-std=gnu).
Tobias
More information about the Fortran
mailing list