I feel fun. that Intel fortran can use ++ or -- in the expression, which GNU fortran make the syntax errors.

It might be useful, however, this makes typing mistakes to pass OK.

print*, 2.0

print*,-2.0

print*, --2.0 ! number 2 with two minus signs is the number 2 back.

print*,---2.0 ! number 2 with three minus signs is the minus 2.

print*,+3.0

print*,++3.0 ! number 3 with two plus sign is the number 3.

print*, +++3.0

print*, -4.0 ! gives -4.0 as usual.

print*,+-4.0 ! gives -4.0

print*,-+-4.0 ! gives 4.0

print*, 1.0--2.0 !gives 3.0

print*, 1.0---3.0 ! gives -2.0.

print*, x--y, x++y, x+-y, x-+y, x---y, x--+y ! etc.

Hiroshi Murakami