Fortran tests with NAG
I think the library should be tested with the NAG compiler as soon as possible. Most probably, it will catch a number of issues.
This will require making the code of libfortran-support, as well as the code of FortUTF standard-conformant (at least, NAG-compatible):
-
CALL EXIT(<EXITCODE>)should be replaced withERROR STOP <EXITCODE>(macro-protectedUSEof the NAG-specificf90_unix_procFortran module that provides theexitsubroutine is also fine, in my opinion; happy to hear about other options). - It should be possible to build the library and the tests with the
-kind=sequential(see here) flag. This means that allINTEGER(<int-kind>)andREAL(<real-kind>)types have to be replaced withINTEGER(selected_int_kind(<r>))andREAL(selected_real_kind(<p>, <r>)). Here, you can find the<r>and<p>values for different<int-kind>and<real-kind>that I have identified some time ago. For example,REAL(8)should be replaced withREAL(selected_real_kind(15, 307))(please, double-check me).
Once that is done, it's worth checking why this test fails with Runtime Error: *** Arithmetic exception: Floating invalid operation - aborting.