https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100551
--- Comment #9 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:6a3018a4064b39a418d95c32e45fe7d6ad17ebf3 commit r10-10384-g6a3018a4064b39a418d95c32e45fe7d6ad17ebf3 Author: Harald Anlauf <anl...@gmx.de> Date: Sun May 23 20:51:14 2021 +0200 Fortran: fix passing return value to class(*) dummy argument gcc/fortran/ChangeLog: PR fortran/100551 * trans-expr.c (gfc_conv_procedure_call): Adjust check for implicit conversion of actual argument to an unlimited polymorphic procedure argument. gcc/testsuite/ChangeLog: PR fortran/100551 * gfortran.dg/pr100551.f90: New test. (cherry picked from commit fe03f4fc9548b3fdbff3c8284a994feaa7d6307d)