This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]