Is it possible for the DEALLOCATE statement to error if you don't violate any rules for the statement and the array was allocated?
If you don't do something stupid like trying to deallocate an array that was never allocated, trying to deallocate a global array that is being used in another thread (maybe), or something silly like DEALLOCATE(Status,STAT=Status(1)), what could cause it to fail?
We are trying to make our software so that it never aborts in a subroutine, but sets error flags and reverses the call stack to the main program for it to abort. We were trying to figure what could possibly cause the deallocation to fail that could be a run-time error not associated with bad programming. Other than debugging you code, is there any real reason to check the error status of a DEALLOCATE?
I'm talking about arrays and not pointers.