My Fortran project is based on -std=f2008. The GNU Fortran (For GCC version 15.0.0) manual's 8.260 STAT example does not link if -std=f2008 is on the command line: gfortran -std=f2008 test_stat.f90; ./a.out The ld error is "undefined reference to `stat_'"
This is with gfortran -version 12.2.0 and ld -version 2.40 Removing -std=f2008, and the example works as expected. George Wyche