GCC Bugzilla – Bug 45417
DEALLOCATE: No error when deallocating a target
Last modified: 2013-06-29 15:27:30 UTC
See thread starting at http://j3-fortran.org/pipermail/j3/2010-August/003747.html
The first example is valid (state == 0), the second valid (state /= 0), and the third one is invalid.
gfortran produces, http://j3-fortran.org/pipermail/j3/2010-August/003753.html, 0 <crash> <crash>.
Expected: The second example produces state /= 0.
Variant (works, should be state == 0):
The problem is that our array descriptor does not save whether a variable has been allocated or just associated with a named target. For the TR descriptor, mentioned in the last link, cf. http://j3-fortran.org/pipermail/interop-tr/2010-August/000163.html
Still present at revision 200557.