codee-com / codee-com/open-catalog

[Fortran] check the length of internal file

Open
#101 1 comment 0 reactions 0 assignees View on GitHub
C Fortran good first issue help wanted
Dominant language
Fortran
Stars
106
Forks
12
PR merge metrics
No merged PRs in 30d

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.