https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59796
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2015-10-20 Ever confirmed|0 |1 --- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > My initial reaction is that yes, 6.7.3.3 in F08 states what you quoted. > And I agree that it is a programming error to pass a dangling pointer > into deallocate. But that does not preclude gfortran from returning > some sort of error back to the user when stat= is present. In fact, 6.7.4 > seems to *require* it - at least in the case of co-arrays. (... > "If any other error condition occurs...") So I don't see a conflict > in the Standard. I am reading the standard the same way.