[Bug fortran/33917] Rejects valid PROCEDURE declarations

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Oct 29 20:04:00 GMT 2007



------- 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



More information about the Gcc-bugs mailing list