[J3] Is this standard compliant

Siddhartha Ghosh sghosh at ucar.edu
Thu Feb 3 20:34:55 UTC 2022


Dear All,

Our flagship NWP code WRF has many many statements containing
"Unary operator following arithmetic operator" (e.g. 10.*-1. ) that
Cray-ftn
fails to compile. While,
1. gfortran compiles with warning
2. ifort compiles fine
3. nvfortran compiles fine
My question is, is this allowed by the current standard ?
I am trying this tiny example as a test.

program tst

print *, 10.*-1.

end


Thanks,


--Sidd

-- 
Siddhartha Ghosh <https://staff.ucar.edu/users/sghosh>
Consulting Services Group
<https://www2.cisl.ucar.edu/user-support/user-services-section#csg>
Computational and Information Systems Laboratory
<https://www.cisl.ucar.edu/>
303-497-1230
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20220203/c2ea8513/attachment.htm>


More information about the J3 mailing list