[Bug fortran/84622] [F08] gfortran accepts invalid intent(out) polymorphic dummy argument with coarray component

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 29 13:51:04 GMT 2026


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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <pault@gcc.gnu.org>:

https://gcc.gnu.org/g:0bc2e8c5101ab34e597106911710c9ce9565d546

commit r17-1975-g0bc2e8c5101ab34e597106911710c9ce9565d546
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Mon Jun 29 14:43:39 2026 +0100

    Fortran: Correct error in accessing CLASS declared type [PR84622]

    2026-06-29  Paul Thomas  <pault@gcc.gnu.org>

    gcc/fortran
            PR fortran/84622
            * resolve.cc (resolve_symbol): In detecting coarray components,
            use the derived type of the class data component, not the data
            component itself. New boolean 'declared_has_coarray_comp' to
            detect this.

    gcc/testsuite/
            PR fortran/84622
            * gfortran.dg/pr84622.f90: New test.


More information about the Gcc-bugs mailing list