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