Re: [Patch, Fortran] PR91863 - fix call to bind(C) with array descriptor

2019-10-27 Thread Paul Richard Thomas
Hi Tobias, Thanks for taking care of this. OK for trunk and 9-branch. Cheers Paul On Wed, 23 Oct 2019 at 14:07, Tobias Burnus wrote: > > With the trunk, there are three issues: > > (a) With bind(C), the callee side handles deallocation with intent(out). > > This should produce the code: >

*Early ping* Re: [Patch, Fortran] PR91863 - fix call to bind(C) with array descriptor

2019-10-26 Thread Tobias Burnus
On 10/23/19 3:07 PM, Tobias Burnus wrote: With the trunk, there are three issues: (a) With bind(C), the callee side handles deallocation with intent(out). This should produce the code:     if (cfi.0 != 0B)   {     __builtin_free (cfi.0);     cfi.0 = 0B;   } This fails as cfi.0

[Patch, Fortran] PR91863 - fix call to bind(C) with array descriptor

2019-10-23 Thread Tobias Burnus
With the trunk, there are three issues: (a) With bind(C), the callee side handles deallocation with intent(out). This should produce the code:     if (cfi.0 != 0B)   {     __builtin_free (cfi.0);     cfi.0 = 0B;   } This fails as cfi.0 (of type 'void*') is dereferenced and *cfi.0