This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/50073] gfortran must not accept function name when result name is present
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 13 Aug 2011 12:44:18 +0000
- Subject: [Bug fortran/50073] gfortran must not accept function name when result name is present
- Auto-submitted: auto-generated
- References: <bug-50073-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50073
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
CC| |janus at gcc dot gnu.org
--- Comment #1 from janus at gcc dot gnu.org 2011-08-13 12:44:18 UTC ---
Confirmed.
However, the following variant is rejected correctly:
function fun() result(f)
integer :: fun
f = 0
end
integer :: fun
1
Error: Function name 'fun' not allowed at (1)