Committed as 'obvious' in revision 241869. This fixes the problem in comment #9. Andre seems to have fixed comment #10 and so I am closing the PR.
Paul 2016-11-05 Paul Thomas <pa...@gcc.gnu.org> PR fortran/67564 * trans-expr.c (gfc_conv_class_to_class): Return _len component of unlimited polymorphic entities. 2016-11-05 Paul Thomas <pa...@gcc.gnu.org> PR fortran/67564 * gfortran.dg/select_type_39.f03: New test.