fortran 7.1 Final routine oddites
William Clodius
w.clodius@icloud.com
Sat Mar 24 22:54:00 GMT 2018
I have been experimenting with object orientation in Fortran. I recently developed a derived type for which a final routine seemed appropriate. I have been testing the code using gfortran 7.1. Its introduction in testing immediately caused problems. In the most recent test it caused a SIGSEGV. It was being invoked before the type components had been initialized, and attempting to index an unallocated array. I suspect, but have not verified, that it was being invoked on an allocate statement. I have been able to work my way around it by testing for array allocation and pointer association, before attempting indexing, deallocation, etc, but the result is ugly code. It will be a pain to reduce the code to a simple test case, but I will if it is useful. Is this a known problem with gfortran 7.1, and has it been fixed?
More information about the Fortran
mailing list