[Bug fortran/50073] gfortran must not accept function name when result name is present

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Aug 13 13:08:00 GMT 2011


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)



More information about the Gcc-bugs mailing list