This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33917] Rejects valid PROCEDURE declarations
- 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: 29 Oct 2007 20:04:08 -0000
- Subject: [Bug fortran/33917] Rejects valid PROCEDURE declarations
- References: <bug-33917-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from burnus at gcc dot gnu dot org 2007-10-29 20:04 -------
This gets difficult.
Using
procedure(p4) :: p6
procedure(sub) :: p4
is invalid per
"C1212 (R1215) [...] If name is declared by a procedure-declaration-stmt it
shall be previously declared."
("name" = interface-name)
However, depending how the tree is parsed, it is rejected or not (rather
independent of my patch).
Using Janus' patch, it is always accepted.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Rejects valid procedure |Rejects valid PROCEDURE
|declarations |declarations
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33917