https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114023

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <[email protected]>:

https://gcc.gnu.org/g:3f8b6373f48af0eabbc2efe04df8f6856add3111

commit r16-4621-g3f8b6373f48af0eabbc2efe04df8f6856add3111
Author: Harald Anlauf <[email protected]>
Date:   Fri Oct 24 21:33:08 2025 +0200

    Fortran: IS_CONTIGUOUS and pointers to non-contiguous targets [PR114023]

            PR fortran/114023

    gcc/fortran/ChangeLog:

            * trans-expr.cc (gfc_trans_pointer_assignment): Always set dtype
            when remapping a pointer.  For unlimited polymorphic LHS use
            elem_len from RHS.
            * trans-intrinsic.cc (gfc_conv_is_contiguous_expr): Extend inline
            generated code for IS_CONTIGUOUS for pointer arguments to detect
            when span differs from the element size.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/is_contiguous_5.f90: New test.

Reply via email to