NVFortran: C preprocessor bug

If you can, add a space between the “.” and “SAD” so it’s seen as a unique token.

Preprocessing is not part of the Fortran standard so each compiler may have slightly different implementations. Ours is similar to the “cpp” C preprocessor, which gives the same output:

% cpp test.F
# 0 "test.F"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 0 "<command-line>" 2
# 1 "test.F"

      print *,
     $(4.eq._SAD_)
      end
1 Like