codee-com/open-catalog

[Fortran] check the length of internal file

Open

#101 创建于 2025年9月11日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Fortran (12 fork)auto 404
CFortrangood first issuehelp wanted

仓库指标

Star
 (105 star)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南