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/33917] Rejects valid PROCEDURE declarations



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


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