Compiling Burkardt's SLATEC with gfortran

In the thread About a Fortran Scientific Library, SLATEC was mentioned as a notable Fortran library. John Burkardt has modernized many Fortran 77 codes, including SLATEC, for one thing moving them to free source form. I can compile and run his version of SLATEC with g95, but compiling with gfortran -c -w slatec.f90 I get many errors, starting with

slatec.f90:218116:33:

218116 |       DATA RMACH(5) / Z'3E9A209B' /
       |                                 1
Error: BOZ literal constant near (1) cannot be assigned to a REAL variable [see '-fno-allow-invalid-boz']
slatec.f90:218115:33:

If we can get SLATEC to compile cleanly with gfortran, that would be a step towards a modern Fortran scientific library. Is there a gfortran compiler option I should used?

1 Like