re PR fortran/78739 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1477)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 17 Aug 2019 14:39:51 +0000 (14:39 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 17 Aug 2019 14:39:51 +0000 (14:39 +0000)
commit716ac0fc6c0ef0f1bf3a295f1338eeb697cddb43
tree9b7bb21748305aae9a215666d079242f79bcb1fb
parent1c3925e32aea0046e01f844f2519c47caa7aa63b
re PR fortran/78739 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1477)

2019-08-17  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/78739
* match.c (gfc_match_st_function):  When matching a statement function,
need to check if the statement function name shadows the function
name.

2019-08-17  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/78739
* fortran.dg/pr78739.f90: New test.

From-SVN: r274605
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr78739.f90 [new file with mode: 0644]