Hi All
OK, here is a perplexing one. I don't have the standard at hand, so I
can't check for a few days... but at least 3 compilers have a problem.
This little piece of code
program test
write(*,*) 1d-1/-2d-1
end program test
produces compile time errors in at least 3 compilers and another 3
compilers pass it fine.
ifort:
compiles and runs
pgf90:
compiles and runs
HP/Compaq/DEC Alpha F90:
compiles and runs
NAG:
Error: test.f90, line 2: syntax error
detected at /@-
***Malformed statement
[f95 terminated - errors found by pass 1]
g95:
In file test.f90:2
write(*,*) 1d-1/-2d-1
1
Error: Syntax error in WRITE statement at (1)
lf95:
1035-S: "test.f90", line 2, column 21: Invalid operator.
Encountered 1 error, 0 warnings in file test.f90.
so who is right and who has a bug?
Stu.
--
<--------------------------------------------------------------------->
Dr Stuart Midgley | [log in to unmask]
Supercomputer Facility | [log in to unmask]
Leonard Huxley Building 56 | +61 (0)2 6125 5988 Work
Australian National University | +61 (0)2 6125 8199 Fax
CANBERRA ACT 0200 | +61 (0)4 1125 2488 Mob
|