codee-com/open-catalog

[Fortran] check the length of internal file

Open

#101 ouverte le 11 sept. 2025

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)Fortran (12 forks)auto 404
CFortrangood first issuehelp wanted

Métriques du dépôt

Stars
 (105 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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).

Guide contributeur