https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78865
--- Comment #8 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Author: tkoenig Date: Sat Mar 30 13:23:38 2019 New Revision: 270032 URL: https://gcc.gnu.org/viewcvs?rev=270032&root=gcc&view=rev Log: 2019-03-30 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/78865 Backport from trunk * interface.c (compare_actual_formal): Change errors about missing or extra to gfc_error_now to make sure they are issued. Change "spec" to "specifier" in message. * resolve.c (resolve_global_procedure): Also check for mismatching interface with global symbols if the namespace has already been resolved. 2019-03-30 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/78865 Backport from trunk * gfortran.dg/altreturn_10.f90: New test. * gfortran.dg/whole_file_3.f90: Change dg-warning to dg-error. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/altreturn_10.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/interface.c branches/gcc-8-branch/gcc/fortran/resolve.c branches/gcc-8-branch/gcc/testsuite/ChangeLog branches/gcc-8-branch/gcc/testsuite/gfortran.dg/whole_file_3.f90