Re: Fortran syntax question (involving **)
- From: "Joost" <jv244@xxxxxxxxx>
- Date: 28 Jun 2005 08:12:46 -0700
> Especially with constants, you have to be aware that the unary minus is an
> operator with its usual precedence and is not "attached to" the constant.
> There is no concept of a "negative number constant" in Fortran syntax.
In the context of this remark, is this error message really correct ?
>cat mytest.f90
REAL, DIMENSION(-1:1) :: A
END
>ifort -e95 mytest.f90
fortcom: Error: mytest.f90, line 1: Fortran 95 specifies that an
elemental intri nsic function here be of type integer or character and
each argument must be an initialization expr of type integer or
character .
REAL, DIMENSION(-1:1) :: A
-------------------^
compilation aborted for mytest.f90 (code 1)
Thanks,
Joost
.
- Follow-Ups:
- Re: Fortran syntax question (involving **)
- From: Steve Lionel
- Re: Fortran syntax question (involving **)
- From: Richard E Maine
- Re: Fortran syntax question (involving **)
- References:
- Fortran syntax question (involving **)
- From: Jim Cownie
- Re: Fortran syntax question (involving **)
- From: Steve Lionel
- Fortran syntax question (involving **)
- Prev by Date: Re: Argument of subroutine is an array of unfixed length.
- Next by Date: Re: Fortran syntax question (involving **)
- Previous by thread: Re: Fortran syntax question (involving **)
- Next by thread: Re: Fortran syntax question (involving **)
- Index(es):