[Bug fortran/105543] Function returning a class array with contiguous attribute rejected
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Dec 10 19:34:08 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105543
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:1e462fb480d38de5f9a4578bbe5c5bc66a01a9ed
commit r14-6381-g1e462fb480d38de5f9a4578bbe5c5bc66a01a9ed
Author: Harald Anlauf <anlauf@gmx.de>
Date: Wed Dec 6 20:42:27 2023 +0100
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.
More information about the Gcc-bugs
mailing list