]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: function returning contiguous class array [PR105543]
authorHarald Anlauf <anlauf@gmx.de>
Wed, 6 Dec 2023 19:42:27 +0000 (20:42 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Sun, 10 Dec 2023 19:24:53 +0000 (20:24 +0100)
commit1e462fb480d38de5f9a4578bbe5c5bc66a01a9ed
treeb94f46eaeb75b8fe889f12b5877e1c95daa5fd87
parentfa99f7d12b87f36d3c38349fcdcfca074564858d
Fortran: function returning contiguous class array [PR105543]

gcc/fortran/ChangeLog:

PR fortran/105543
* resolve.cc (resolve_symbol): For a CLASS-valued function having a
RESULT clause, ensure that attr.class_ok is set for its symbol as
well as for its resolved result variable.

gcc/testsuite/ChangeLog:

PR fortran/105543
* gfortran.dg/contiguous_13.f90: New test.
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/contiguous_13.f90 [new file with mode: 0644]