Re: Fortran syntax question (involving **)



> 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

.