]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Prevent ICE when getting caf-token from abstract type [PR77872]
authorAndre Vehreschild <vehre@gcc.gnu.org>
Mon, 3 Mar 2025 13:42:28 +0000 (14:42 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 4 Mar 2025 08:38:14 +0000 (09:38 +0100)
commit5bd664838398980f1c8af60a946947ff83744fcc
tree29259ae73c93e28c1fbfa40c56385a8d82a503c2
parentef605e106c6075bfe2a5625add7185a9a3f722b1
Fortran: Prevent ICE when getting caf-token from abstract type [PR77872]

PR fortran/77872

gcc/fortran/ChangeLog:

* trans-expr.cc (gfc_get_tree_for_caf_expr): Pick up token from
decl when it is present there for class types.

gcc/testsuite/ChangeLog:

* gfortran.dg/coarray/class_1.f90: New test.
gcc/fortran/trans-expr.cc
gcc/testsuite/gfortran.dg/coarray/class_1.f90 [new file with mode: 0644]