[Bug fortran/34656] modifies do loop variable
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Mar 28 21:40:00 GMT 2009
------- Comment #6 from burnus at gcc dot gnu dot org 2009-03-28 21:40 -------
FIXED on the trunk (4.5):
$ gfortran -fcheck=do test.f90
$ ./a.out
At line 4 of file test.f90
Fortran runtime error: Loop variable has been modified
The error location is not the best but it works reliably and without adding a
check after each statement. (NAG f95 gives a better line for the error message
for such violations, but it fails to detect this violation.)
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34656
More information about the Gcc-bugs
mailing list