Re: [Patch, fortran] PR59104

2024-06-09 Thread Paul Richard Thomas
Hi Harald, Thanks for the loophole detection! It is obvious now I see it, as is the fix. I'll get on to it as soon as I find some time. Cheers Paul On Sun, 9 Jun 2024 at 21:35, Harald Anlauf wrote: > Hi Paul, > > your approach sounds entirely reasonable. > > But as the following addition to

Re: [Patch, fortran] PR59104

2024-06-09 Thread Harald Anlauf
Hi Paul, your approach sounds entirely reasonable. But as the following addition to the testcase shows, there seem to be loopholes left. When I add the following to function f: integer :: l1(size(y)) integer :: l2(size(z)) print *, size (l1), size (l2), size (z) I g

Re: [Patch, fortran] PR59104

2024-06-09 Thread Paul Richard Thomas
Hi All, I have extended the testcase - see below and have s/dependent_decls_2/dependent_decls_2.f90/ in the ChnageLog. Cheers Paul ! { dg-do run } ! ! Fix for PR59104 in which the dependence on the old style function result ! was not taken into account in the ordering of auto array allocation a

Re: Fortran compiler

2024-06-09 Thread Zhenjin Zhu
Hi FX, Thank you so much for your prompt response. Glad to know Gfortran is free. I really appreciate that you have shared the link with me. I will take a look. All the best, Zhenjin From: FX Coudert Sent: Sunday, June 9, 2024 4:07 AM To: Zhenjin Zhu Cc: Fort

Re: Fortran compiler

2024-06-09 Thread FX Coudert
> I am interested in your company's Fortran Compiler. > Is it free? If not, how much for a permanent license? gfortran is free, part of GCC which is open source software. It is provided on your system: - for Windows see there: https://gcc.gnu.org/wiki/GFortranBinaries - for macOS, as part of