]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: associate to a contiguous pointer or target [PR122977]
authorHarald Anlauf <anlauf@gmx.de>
Thu, 4 Dec 2025 21:16:10 +0000 (22:16 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 5 Dec 2025 18:49:14 +0000 (19:49 +0100)
commitee9ded19244ab887759eb3faef452ee70316835e
tree47af3ccb83d4b11cd55eeaa6c2fe7b3354420485
parentd1ac432c5a889a101e5a81ec349f76e55403c2f4
Fortran: associate to a contiguous pointer or target [PR122977]

PR fortran/122977

gcc/fortran/ChangeLog:

* expr.cc (gfc_is_simply_contiguous): For an associate variable
check whether the associate target is contiguous.
* resolve.cc (resolve_symbol): Skip array type check for an
associate variable when the target has the contiguous attribute.

gcc/testsuite/ChangeLog:

* gfortran.dg/contiguous_16.f90: New test.
gcc/fortran/expr.cc
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/contiguous_16.f90 [new file with mode: 0644]