codee-com/open-catalog

[Fortran] check the length of internal file

Open

#101 geöffnet am 11. Sept. 2025

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Fortran (12 Forks)auto 404
CFortrangood first issuehelp wanted

Repository-Metriken

Stars
 (105 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

With the following example, gfortran has runtime error:

program main
  character(len=5) :: s
  write(s, '(3I0)') [11, 22, 33]
  print '(a)', s
end program main

since the written string is longer than string s.

It would be nice to have a check that will determine such situations (especially when runtime values are used).

Contributor Guide