https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81758
--- Comment #23 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Sat Oct 28 08:53:19 2017 New Revision: 254196 URL: https://gcc.gnu.org/viewcvs?rev=254196&root=gcc&view=rev Log: 2017-10-28 Paul Thomas <pa...@gcc.gnu.org> PR fortran/81758 * trans-expr.c (trans_class_vptr_len_assignment): 'vptr_expr' must only be set if the right hand side expression is of type class. 2017-10-28 Paul Thomas <pa...@gcc.gnu.org> PR fortran/81758 * gfortran.dg/class_63.f90: New test. Added: branches/gcc-7-branch/gcc/testsuite/gfortran.dg/class_63.f90 Modified: branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/trans-expr.c branches/gcc-7-branch/gcc/testsuite/ChangeLog