NAG Fortran Compiler Release 5.2 Release Note

NAG Fortran Compiler Release 5.2 Release Note

Table of Contents

1 Introduction

Release 5.2 of the NAG Fortran Compiler contains many improvements to the compiler and additions to the Fortran 2003 language features.

This release of the compiler uses the same licensing scheme as Release 5.1; thus Release 5.1 licence keys continue to work with Release 5.2, except on Microsoft Windows where a Release 5.2 key is required.

See KLICENCE for more information about Kusari Licence Management.

1.1 Compatibility with Release 5.1

Release 5.2 of the NAG Fortran Compiler is fully compatible with NAGWare f95 Release 5.1 except that:
  • programs or libraries that use the CLASS keyword, or which contain types that will be extended, need to be recompiled;
  • the following 64-bit platforms, when the -abi=64 option (the default) is used, are binary incompatible and all programs and libraries need to be recompiled: NPL6A51NA, NPMI651NA.

1.2 Compatibility with Earlier Releases

Except as noted, the NAG Fortran Compiler release 5.2 is compatible with NAGWare f90 Releases 2.1 and 2.2, as well as with all NAGWare f95 Releases from 1.0 to 5.0.

The following incompatibilities were introduced in Release 5.1:

  • The value returned by STAT=, on an ALLOCATE or DEALLOCATE statement, may differ from the pre-5.1 value in some cases. For further information see the F90_STAT module documentation.
  • Programs that used type extension (EXTENDS attribute) in 5.0 need to be recompiled.
  • Formatted output for IEEE infinities and NaNs is different, and now conforms to Fortran 2003
  • List-directed output of a floating-point zero now uses F format, as required by Fortran 2003, instead of E format.
  • An i/o or format error encounted during NAMELIST input will now skip the erroneous record. This behaviour is the same as all other formatted input operations including list-directed.

1.3 New Features

Release 5.2 includes new features from the Fortran 2003 standard, plus quad precision floating-point arithmetic support on all platforms, improved runtime error message reporting, and a better random number generator.

This release also contains performance enhancements and other minor enhancements.

2 Major Fortran 2003 Features

3 Other Fortran 2003 Features

4 Performance Enhancements

5 Other Major Enhancements

6 Other Minor Enhancements

7 New Fortran Standard

The extensions (described above) which follow the rules of the Fortran 2003 standard are listed below together with the appropriate section number for the reference book ``Fortran 95/2003 Explained'' by Metcalf, Reid & Cohen, Oxford University Press, 2008 printing (ISBN 978-0-19-852693-3).