https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87734
--- Comment #16 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Author: tkoenig Date: Sun Mar 10 11:09:30 2019 New Revision: 269550 URL: https://gcc.gnu.org/viewcvs?rev=269550&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-7-branch/gcc/testsuite/gfortran.dg/public_private_module_10.f90 Modified: branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/resolve.c branches/gcc-7-branch/gcc/fortran/symbol.c branches/gcc-7-branch/gcc/testsuite/ChangeLog