http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49324
--- Comment #7 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-06-10 12:45:13 UTC --- Submitted patch, which fixes - except of RESHAPE - the issue of comment 0 and comment 3: http://gcc.gnu.org/ml/fortran/2011-06/msg00095.html TODO: See comment 6: Namely, for realloc on assignment, the malloced memory is not NULLified - and RESHAPE is wrong (missing deep copy).