https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100602
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:cb5c89afbe0ef59fa315cbfda31a55ea5d8ca297 commit r11-8478-gcb5c89afbe0ef59fa315cbfda31a55ea5d8ca297 Author: Harald Anlauf <anl...@gmx.de> Date: Thu May 27 13:58:26 2021 +0200 Fortran: Fix erroneous "pointer argument is not associated" runtime error For CLASS arrays we need to use the CLASS data attributes to determine which runtime check to generate. gcc/fortran/ChangeLog: PR fortran/100602 * trans-intrinsic.c (gfc_conv_intrinsic_size): Use CLASS data attributes for CLASS arrays for generation of runtime error. gcc/testsuite/ChangeLog: PR fortran/100602 * gfortran.dg/pointer_check_14.f90: New test. (cherry picked from commit 71d7dc6cd09b603bcc58d5d1747a86eb498bb147)