https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87734
--- Comment #15 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Author: tkoenig Date: Sun Mar 10 10:28:14 2019 New Revision: 269548 URL: https://gcc.gnu.org/viewcvs?rev=269548&root=gcc&view=rev Log: 2019-03-10 Thomas Koenig <tkoe...@gcc.gnu.org> Steven G. Kargl <ka...@gcc.gnu.org> PR fortran/87734 Backort from trunk * symbol.c (gfc_add_procedure): Only throw an error if the procedure has not been declared either PUBLIC or PRIVATE. * resolve.c (is_illegal_recursion): Remove an assert(). 2019-03-10 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/87734 Backport from trunk * gfortran.dg/public_private_module_10.f90: New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/public_private_module_10.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/resolve.c branches/gcc-8-branch/gcc/fortran/symbol.c branches/gcc-8-branch/gcc/testsuite/ChangeLog