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/30878] Rejects function f1; namelist /nml/ f1



------- Comment #1 from burnus at gcc dot gnu dot org  2007-02-20 15:59 -------
   INTEGER FUNCTION F1()
     NAMELIST /NML/ F1
is rejected:
     NAMELIST /NML/ F1
                     1
Error: PROCEDURE attribute conflicts with NAMELIST attribute in 'f1' at (1)

I didn't check yet whether this is correct; however, g95 and nagf95 accept it
whereas ifort rejects it ("A function result is not valid in this context").


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu dot
                   |                            |org
           Keywords|                            |rejects-valid
            Summary|incorrect error message for |Rejects function f1;
                   |valid code                  |namelist /nml/ f1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30878


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