https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927
--- Comment #8 from vehre at gcc dot gnu.org --- More elaborate patch available at: https://gcc.gnu.org/ml/fortran/2015-09/msg00142.html This patch also handles functions for source= that return a class object.