Compile Fortran code with nvfortran

When compile the following code with nvfortran,

Program test
  implicit none

9001 format("ga00aa :        "3x" : "a3"="    99es14.06)
9002 format("ga00aa :        "3x" : "a3"="14x,99es14.06)
9003 format("ga00aa :        "3x" : evalue =",es13.05," +",es13.05" i ; evector="es13.05" +"es13.05" i,"es13.05 &
          " +"es13.05" i ;")

end Program test

There is such errors:

NVFORTRAN-S-0029-Illegal hexadecimal constant: : (test.F90: 4)
NVFORTRAN-S-0034-Syntax error at or near non-decimal constant 0 (test.F90: 4)
NVFORTRAN-S-0029-Illegal hexadecimal constant: : (test.F90: 5)
NVFORTRAN-S-0034-Syntax error at or near non-decimal constant 0 (test.F90: 5)
NVFORTRAN-S-0029-Illegal hexadecimal constant: :evalue= (test.F90: 6)
NVFORTRAN-S-0034-Syntax error at or near non-decimal constant 0 (test.F90: 6)
  0 inform,   0 warnings,   6 severes, 0 fatal for test

However it could be compiled successfully with gfortran. Please, how should I solve it without modifying the code?

Hi liu_jiaxing,

You need to add commas between the fields in the format. I believe there’s a VAX extension which does require them but it’s not part of the standard. We didn’t carry the VAX extensions forward between pgf77 (the old PGI F77 compiler) and pgf90 (now called nvfortran).

-Mat