https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102745
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:3de82c6c36fea8fad7145b62ccb3a7c06d1f3c51 commit r11-9173-g3de82c6c36fea8fad7145b62ccb3a7c06d1f3c51 Author: Tobias Burnus <tob...@codesourcery.com> Date: Mon Oct 18 09:49:05 2021 +0200 Fortran: Fix CLASS conversion check [PR102745] PR fortran/102745 gcc/fortran/ChangeLog * intrinsic.c (gfc_convert_type_warn): Fix checks by checking CLASS and do typcheck in correct order for type extension. * misc.c (gfc_typename): Print proper not internal CLASS type name. gcc/testsuite/ChangeLog * gfortran.dg/class_72.f90: New. (cherry picked from commit 017665f63047ce47b087b0b283548a60e5abf3d2)