Paul Richard Thomas
2018-07-28 07:32:41 UTC
Several attempts, including mine, were made to fix this bug since it
was posted. They were all attacking the wrong place. Instead of
providing the free of the class _data as part of the call to
'add_a_type' it should be included in the post block of the argument
processing in the call to 'assign_a_type'. The comment in the patch
says the rest.
Bootstrapped and regtested on FC28/x86_64 - OK for trunk?
Paul
2017-07-27 Paul Thomas <***@gcc.gnu.org>
PR fortran/80477
* trans-expr.c (gfc_conv_procedure_call): Allocatable class
results being passed to a derived type formal argument must
have the _data component deallocated after use.
2017-07-27 Paul Thomas <***@gcc.gnu.org>
PR fortran/80477
* gfortran.dg/class_result_7.f90: New test.
was posted. They were all attacking the wrong place. Instead of
providing the free of the class _data as part of the call to
'add_a_type' it should be included in the post block of the argument
processing in the call to 'assign_a_type'. The comment in the patch
says the rest.
Bootstrapped and regtested on FC28/x86_64 - OK for trunk?
Paul
2017-07-27 Paul Thomas <***@gcc.gnu.org>
PR fortran/80477
* trans-expr.c (gfc_conv_procedure_call): Allocatable class
results being passed to a derived type formal argument must
have the _data component deallocated after use.
2017-07-27 Paul Thomas <***@gcc.gnu.org>
PR fortran/80477
* gfortran.dg/class_result_7.f90: New test.