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 <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:1e462fb480d38de5f9a4578bbe5c5bc66a01a9ed commit r14-6381-g1e462fb480d38de5f9a4578bbe5c5bc66a01a9ed Author: Harald Anlauf <anl...@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.