re PR fortran/50073 (gfortran must not accept function name when result name is present)
commitbb9de0c4d08235b14fe27c7f0ab3e2eb92aa231f
authorJanus Weil <janus@gcc.gnu.org>
Sun, 14 Aug 2011 09:37:25 +0000 (14 11:37 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Sun, 14 Aug 2011 09:37:25 +0000 (14 11:37 +0200)
tree1e9dc32daee9818eb7ad634080d221d442ceaf43
parentf3713778332ef6b2d10c3981ebcc6ab8540b3f85
re PR fortran/50073 (gfortran must not accept function name when result name is present)

2011-08-14  Janus Weil  <janus@gcc.gnu.org>

PR fortran/50073
* decl.c (check_function_name): New function, separated off from
'variable_decl' and slightly extended.
(variable_decl,attr_decl1): Call it.

2011-08-14  Janus Weil  <janus@gcc.gnu.org>

PR fortran/50073
* gfortran.dg/func_result_7.f90: New.

From-SVN: r177745
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/func_result_7.f90 [new file with mode: 0644]