This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/26801] -fbounds-check generates segfault
- From: "tobias dot burnus at physik dot fu-berlin dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jun 2006 10:57:17 -0000
- Subject: [Bug fortran/26801] -fbounds-check generates segfault
- References: <bug-26801-9410@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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