Hi Jerry, Thanks for the review and testing. Pushed as r16-3851.
As to the memory leak in pdt_3.f03, I will take a look at it this morning. I will raise a PR for it whatever I find. Regards Paul On Sun, 14 Sept 2025 at 20:14, Jerry D <jvdelis...@gmail.com> wrote: > > On 9/14/25 6:04 AM, Paul Richard Thomas wrote: > > Hi All, > > > > The title in the PR is, "Bug 83763 - PDT variable sees content > > deallocated if variable is passed as an input to a function, and the > > function result is assigned to that same variable". The above is > > slightly more concise! > > > > The fix for the PR itself comprises the chunks in trans-expr.cc. On > > checking the allocatable version, I found a memory leak, which > > necessitated the chunks in trans-decl.cc. > > > > On implementing the changes in trans-decl.cc for class entities, a > > segfault resulted in pdt_3.f03. This also uncovered a memory leak in > > the allocation with source in this test. I will investigate further. > > > > Other than these remarks, the patch is straightforward and regtests on > > FC42/x86_64. OK for mainline? > > > > Paul > > Hi Paul, > > Reviwed, applied, and tested here ok. > > OK for mainline. > > Regarding the memory leak, will this be a new PR or an existing one? > > Cheers, > > Jerry