https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98565
--- 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:755299ea93dd064ab5ec1027a34f30ca2d908f4c commit r10-10110-g755299ea93dd064ab5ec1027a34f30ca2d908f4c Author: Paul Thomas <pa...@gcc.gnu.org> Date: Fri Jan 22 17:11:06 2021 +0000 Fortran: Fix for class functions as associated target [PR98565]. 2021-01-22 Paul Thomas <pa...@gcc.gnu.org> gcc/fortran PR fortran/98565 * trans-intrinsic.c (gfc_conv_associated): Do not add a _data component for scalar class function targets. Instead, fix the function result and access the _data from that. gcc/testsuite/ PR fortran/98565 * gfortran.dg/associated_target_7.f90 : New test. (cherry picked from commit bf8ee9e4eed6ba1a6d77b4cf168df480e1f954da)