Fortran 16.1
GCC 16.1 has been released, bringing the latest gfortran compiler with significant Fortran 2023 support, improved coarray handling, and new intrinsics. Here is the full rundown of what changed in the Fortran front end.
Fortran 2023 Support
GCC 16.1 advances Fortran 2023 compatibility with several key additions:
- Trigonometric functions — The Fortran 2023 additions to trigonometric intrinsics are now supported, including
sinpi,cospi, and related functions. - SPLIT intrinsic — The
splitintrinsic subroutine is now supported, providing string splitting capabilities directly in the language. - C_F_POINTER enhancement —
c_f_pointernow accepts an optional lower bound argument, improving interoperability with C code.
Coarray Improvements
Coarrays can now use native shared memory multithreading on single-node machines, and Fortran 2018's TEAM feature is supported. This brings better parallel computing capabilities to Fortran programs without requiring external libraries.
Fortran 2018 and 2003 Updates
- Fortran 2018 — Support for extensions to the IMPORT statement, the REDUCE intrinsic, and the new GENERIC statement.
- Fortran 2003 — Parameterized Derived Types (PDTs) support is improved, with handling of LEN parameters now functioning correctly.
New Compiler Options
The -fexternal-blas64 option has been added to call external BLAS routines with 64-bit integer arguments for MATMUL. This option is valid on 64-bit systems when -ffrontend-optimize is active, enabling better performance for numerical workloads.
Fortran 16.1 is available now as part of GCC 16.1. Upgrade your toolchain to take advantage of the latest language standards and performance improvements.