This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30878] Rejects function f1; namelist /nml/ f1
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Feb 2007 15:59:42 -0000
- Subject: [Bug fortran/30878] Rejects function f1; namelist /nml/ f1
- References: <bug-30878-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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