[Bug fortran/26801] -fbounds-check generates segfault
tobias dot burnus at physik dot fu-berlin dot de
gcc-bugzilla@gcc.gnu.org
Sat Jun 17 11:05:00 GMT 2006
------- Comment #7 from tobias dot burnus at physik dot fu-berlin dot de 2006-06-17 10:57 -------
The test case of comment #4 is invalid as the Fortran standard says that a
pointer is undefined unless it is associated (allocated, assigned) or
deassociated (nullifyed). In this case it is undefined.
(What gfortran should do in this case is a matter of taste, crashing is
completely acceptable.)
However, the test case of comment #3 is valid Fortran 2003, nonetheless
gfortran crashes here, which should be fixed (and seems to be fixed by patch in
comment 6).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26801
More information about the Gcc-bugs
mailing list