https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86116
--- Comment #5 from janus at gcc dot gnu.org --- Author: janus Date: Wed Sep 5 19:22:53 2018 New Revision: 264131 URL: https://gcc.gnu.org/viewcvs?rev=264131&root=gcc&view=rev Log: 2018-09-05 Janus Weil <ja...@gcc.gnu.org> Backported from trunk PR fortran/86116 * interface.c (compare_type): Remove a CLASS/TYPE check. (compare_type_characteristics): New function that behaves like the old 'compare_type'. (gfc_check_dummy_characteristics, gfc_check_result_characteristics): Call 'compare_type_characteristics' instead of 'compare_type'. 2018-09-05 Janus Weil <ja...@gcc.gnu.org> Backported from trunk PR fortran/86116 * gfortran.dg/generic_34.f90: New test case. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/generic_34.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/interface.c branches/gcc-8-branch/gcc/testsuite/ChangeLog