codee-com/open-catalog

[Fortran] check the length of internal file

Open

#101 opened on 2025年9月11日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)Fortran (12 forks)auto 404
CFortrangood first issuehelp wanted

Repository metrics

Stars
 (105 stars)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド