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 <[email protected]>:

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

commit r17-1975-g0bc2e8c5101ab34e597106911710c9ce9565d546
Author: Paul Thomas <[email protected]>
Date:   Mon Jun 29 14:43:39 2026 +0100

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

    2026-06-29  Paul Thomas  <[email protected]>

    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.

Reply via email to