]> git.feebdaed.xyz Git - 0xmirror/gcc.git/commit
Fortran: INTENT(IN) polymorphic argument with pointer components [PR71565]
authorHarald Anlauf <anlauf@gmx.de>
Fri, 19 Dec 2025 20:15:44 +0000 (21:15 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 19 Dec 2025 20:15:44 +0000 (21:15 +0100)
commit05f9824f44f088f4afa02f03063d638c787162c5
tree669404c1dad5eb7dc907f2d5147f7c2d8e03284d
parentd4e6fc510f90b0e6895841febfa9da8858653cfe
Fortran: INTENT(IN) polymorphic argument with pointer components [PR71565]

PR fortran/71565

gcc/fortran/ChangeLog:

* expr.cc (gfc_check_vardef_context): Fix treatment of INTENT(IN)
checks for ASSOCIATE variables.  Correct checking of PROTECTED
objects, as subobjects inherit the PROTECTED attribute.

gcc/testsuite/ChangeLog:

* gfortran.dg/protected_8.f90: Adjust patterns.
* gfortran.dg/associate_76.f90: New test.
gcc/fortran/expr.cc
gcc/testsuite/gfortran.dg/associate_76.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/protected_8.f90