https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114023
--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Harald Anlauf <[email protected]>: https://gcc.gnu.org/g:31d3f96b790c76df14e6328fd600d616ca969abd commit r15-10472-g31d3f96b790c76df14e6328fd600d616ca969abd 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. (cherry picked from commit 3f8b6373f48af0eabbc2efe04df8f6856add3111)
