Building Fortran Standard Library (stdlib) fails

I tried to build the Fortran Standard Library and ran into a variety of errors:

  1. error stop cannot print variables, if the name starts with module.
program main
character(*), parameter :: module_name = "main"
error stop module_name
end program main

results in

NVFORTRAN-S-0034-Syntax error at or near MODULE (a.f90: 3)
  0 inform,   0 warnings,   1 severes, 0 fatal for main

(it doesn’t matter if you try to print something like error stop "error in " // module_name)

  1. The count function doesn’t accept the kind argument:
program main
use iso_fortran_env, only: int64
print*, count([(i, i=0,10)] < 5, kind=int64)
end program main

results in

NVFORTRAN-S-0079-Keyword form of argument illegal in this context for kind (a.f90: 3)
  0 inform,   0 warnings,   1 severes, 0 fatal for main
  1. It seems to be possible to overload the (un-)formatted read/write functions, but impossible to set the private or public attributes with public :: write(formatted):
    NVFORTRAN-S-0034-Syntax error at or near identifier formatted
  2. Some functions are missing: shiftl, shiftr, bgt and blt.
1 Like

I hope I’m now allowed to post the backlink to the corresponding issue in the stdlib GitHub repository: