codee-com/open-catalog

[Fortran] format strings may generate indistinguishable output

Open

#100 aperta il 11 set 2025

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Fortran (12 fork)auto 404
Fortrangood first issuehelp wantednew check

Metriche repository

Star
 (105 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Format strings like '(5I0)' will generate single long number. Most of time, it is undesired behaviour.

Example:

program main
  print '(3I0)', [11, 22, 33]
  print '(3I0)', [112, 23, 3]
end program main

The same issue is for real type. For logical type, it is not a problem.

Guida contributor