[Patch, fortran]
Jerry D
jvdelisle2@gmail.com
Mon Dec 2 01:46:22 GMT 2024
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 <pault@gcc.gnu.org <mailto:pault@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.
>
More information about the Fortran
mailing list