This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25031] Allocatable array can be reallocated.
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2006 18:49:01 -0000
- Subject: [Bug fortran/25031] Allocatable array can be reallocated.
- References: <bug-25031-9795@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from tkoenig at gcc dot gnu dot org 2006-01-28 18:49 -------
This one is a bit tricky, because the code would
be legal (if memory-leaking) for if a were a pointer.
Also, using a stat variable is supposed to catch this.
Seems like we need a new function for allocating allocatable
arrays, which checks for allocation status and errors out if
the array is already allocated.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25031