https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86116
--- Comment #7 from janus at gcc dot gnu.org --- Author: janus Date: Fri Sep 7 18:01:23 2018 New Revision: 264162 URL: https://gcc.gnu.org/viewcvs?rev=264162&root=gcc&view=rev Log: 2018-09-07 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-07 Janus Weil <ja...@gcc.gnu.org> Backported from trunk PR fortran/86116 * gfortran.dg/generic_34.f90: New test case. Added: branches/gcc-6-branch/gcc/testsuite/gfortran.dg/generic_34.f90 Modified: branches/gcc-6-branch/gcc/fortran/ChangeLog branches/gcc-6-branch/gcc/fortran/interface.c branches/gcc-6-branch/gcc/testsuite/ChangeLog