[Bug fortran/122977] [15/16 Regression] Wrongly rejects associate to a contiguous pointer
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 5 18:49:43 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122977
--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:ee9ded19244ab887759eb3faef452ee70316835e
commit r16-5923-gee9ded19244ab887759eb3faef452ee70316835e
Author: Harald Anlauf <anlauf@gmx.de>
Date: Thu Dec 4 22:16:10 2025 +0100
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.
More information about the Gcc-bugs
mailing list