Hi Jerry, Thanks for the green light. I am holding off for 24 hours because I have a much cleaner solution in the offing.
Cheers Paul On Mon, 2 Dec 2024 at 01:46, Jerry D <jvdelis...@gmail.com> wrote: > On 12/1/24 1:31 PM, Paul Richard Thomas wrote: > > Hi All, > > > > This is a regression caused by my patch for PR109345 - r15-5083. > > > > I overlooked the possibility that the unlimited polymorphic container > > might be the component of a dummy derived type. The fix is simple and > > relatively obvious. > > > > Regards > > > > Paul > > > > OK to push. > > Jerry > > > Fortran: Fix regression caused by r15-5083 [PR117797] > > > > 2024-12-01 Paul Thomas <pa...@gcc.gnu.org <mailto:pa...@gcc.gnu.org>> > > > > gcc/fortran > > PR fortran/117797 > > * trans-array.cc (gfc_get_array_span): Prevent unlimited poly- > > morphic dummy variable expressions, if the array is a component > > of a derived type, from using GFC_DECL_SAVED_DESCRIPTOR for the > > class container. Use a gcc_assert to verify the presence of the > > GFC_DECL_SAVED_DESCRIPTOR. > > > > gcc/testsuite/ > > PR fortran/117797 > > * gfortran.dg/pr117797.f90 : New test. > > > >