re PR fortran/87734 (ICE in is_illegal_recursion check for character len= parameter)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 10 Mar 2019 09:34:46 +0000 (09:34 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 10 Mar 2019 09:34:46 +0000 (09:34 +0000)
commit2263c69edc270c1e762c88e771d12dd5d09b052d
tree31cddd2643e2e922910fe62e270042ae23b5d3d0
parentc02a57a0bb0238915929b267f275ee3d4832185f
re PR fortran/87734 (ICE in is_illegal_recursion check for character len= parameter)

2019-03-10  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/87734
* symbol.c (gfc_add_procedure): Only throw an error if the
procedure has not been declared either PUBLIC or PRIVATE.

2019-03-10  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/87734
* gfortran.dg/public_private_module_10.f90: New test.

From-SVN: r269547
gcc/fortran/ChangeLog
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/public_private_module_10.f90 [new file with mode: 0644]