[Bug fortran/68927] Code aborts in deallocate statement with a stat= specified
jvdelisle at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 17 21:40:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68927
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jvdelisle at gcc dot gnu.org
--- Comment #4 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
-fdump-tree-original :
integer(kind=4) stat.4;
if (p.data == 0B)
{
stat.4 = 1;
}
else
{
__builtin_free (p.data);
stat.4 = 0;
}
We are not testing for "was it previously allocated". It seems that maybe the
frontend should check target to see if it is so.
More information about the Gcc-bugs
mailing list