re PR fortran/50555 (synonymous namelist/statement function dummy argument not allowe...
commitc0f0e35a6d913017e973fa097cd4df0eea757329
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 7 Feb 2016 20:15:55 +0000 (7 20:15 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 7 Feb 2016 20:15:55 +0000 (7 20:15 +0000)
tree2e8313d888a90be8c25d68bbb0469ca89cb793a1
parentfc7d77bbf6b7b0d9aefde864c89c0c97de50b95b
re PR fortran/50555 (synonymous namelist/statement function dummy argument not allowed (r178939))

2016-02-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/50555
* primary.c (match_actual_arg): If symbol has attribute flavor of
namelist, generate an error. (gfc_match_rvalue): Likewise return
MATCH_ERROR.
* resolve.c (resolve_symbol): Scan arument list of procedures and
generate an error if a namelist is found.

PR fortran/50555
* gfortran.dg/namelist_args.f90: New test.

From-SVN: r233203
gcc/fortran/ChangeLog
gcc/fortran/primary.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/namelist_args.f90 [new file with mode: 0644]