Re: gfortran -std=f95 overzealous?
- From: Al Greynolds <awgreynolds@xxxxxxxxxxxxx>
- Date: Mon, 21 Jan 2008 15:29:48 -0800 (PST)
On Jan 21, 2:38 pm, ka...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx (Steven G.
Kargl) wrote:
In fact, len_trim() at least works as advertised.
I should have been more precise in my original post:
I use "index" and "len_trim" in some ARRAY initialization expressions
and
gfortran complains that their use here is an extension to the
Fortran-95 standard. None of my other compilers complain (with f95
compliance ON). The standard seems to say any ELEMENTAL intrinsic
involving
only integer and/or character types is allowed.
Its not a big deal because the code is compiled and executed correctly
by gfortran which just complains (I think we agree erroneously) with -
std=f95.
Al
PS. Here's a simple test case to compile with and without -std=f95
module bug
character(*),dimension(3),parameter :: a=(/'a() ','b(,) ','c(,,)'/)
integer,dimension(3),parameter :: l=len_trim(a),i=index(a,'(')
end
.
- Follow-Ups:
- Re: gfortran -std=f95 overzealous?
- From: Daniel Franke
- Re: gfortran -std=f95 overzealous?
- References:
- gfortran -std=f95 overzealous?
- From: Al Greynolds
- Re: gfortran -std=f95 overzealous?
- From: Craig Dedo
- Re: gfortran -std=f95 overzealous?
- From: Steven G. Kargl
- gfortran -std=f95 overzealous?
- Prev by Date: Re: gfortran -std=f95 overzealous?
- Next by Date: Re: recursion, stack, fortran
- Previous by thread: Re: gfortran -std=f95 overzealous?
- Next by thread: Re: gfortran -std=f95 overzealous?
- Index(es):
Relevant Pages
|