https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101536
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:95cda605a8f7e6b54c428b7d2c37b4f2ebe4a8d8 commit r10-10014-g95cda605a8f7e6b54c428b7d2c37b4f2ebe4a8d8 Author: Harald Anlauf <anl...@gmx.de> Date: Fri Jul 23 21:00:10 2021 +0200 Fortran: extend check for array arguments and reject CLASS array elements. gcc/fortran/ChangeLog: PR fortran/101536 * check.c (array_check): Adjust check for the case of CLASS arrays. gcc/testsuite/ChangeLog: PR fortran/101536 * gfortran.dg/pr101536.f90: New test. (cherry picked from commit e314cfc371d8b2405a1d81e51b90f9fb24b9061f)