This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/25031] Allocatable array can be reallocated.



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]