[Bug fortran/30528] INTEGER(2) overflow

2007-01-21 Thread fxcoudert at gcc dot gnu dot org
--- Comment #2 from fxcoudert at gcc dot gnu dot org 2007-01-21 20:14 --- First, it should be noted that it's not legal code. Indeed, you might (or not) be surprised by the behaviour of the code in question: pito /tmp $ cat a.f INTEGER*2 IWD1 IWD1 = 32768 PRINT *, IW

[Bug fortran/30528] INTEGER(2) overflow

2007-01-21 Thread jvdelisle at gcc dot gnu dot org
--- Comment #1 from jvdelisle at gcc dot gnu dot org 2007-01-21 20:11 --- The largest positive integer that can be represented by that kind type is 32767, so gfortran is correctly reporting an error. Use -fno-range-check to bypass this. -- jvdelisle at gcc dot gnu dot org changed: