Loops don't behave like they should

Setting a loop to fail due to choosing a variable size that is too small is a known issue in most languages. I’ve seen this in c, pascal, basic, etc… This is just something that a beginner programming class SHOULD have explained to you when discussing variable types and their ranges. This isn’t new…

Knarfnarf

New compiler messages coming for NAG Fortran Compiler Release 7.1

  • “Integer overflow calculating DO iteration count”,
  • “Iteration count $V out of range for DO index variable $X of type $C”,
  • “DO exit value $V out of range for DO index variable $X of type $C”,
  • “DO exit value $V+$V out of range for DO index variable $X of type $C”,
4 Likes