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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-09-22
     Ever Confirmed|0                           |1

--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-09-22 
22:21:02 UTC ---
(In reply to comment #4)
> I would assume that this is invalid, since the declaration of 
> compute_routine's
> interface is somehow 'recursive', i.e. referring to itself.

From f2008 draft:

> 12.4.3.6 Procedure declaration statement
>
> ...
>
> 2 If proc-interface appears and consists of interface-name, it species an 
> explicit specic interface (12.4.3.2) for the declared procedures or 
> procedure 
> pointers. The abstract interface (12.4) is that specied by the interface 
> named 
> by interface-name.

My understanding of the above quote is that

    procedure(compute_routine) :: zfunc 

has nothing to do with recursiveness, but that zfunc has the same interface as
compute_routine. Am I wrong?

BTW adding RECURSIVE to compute_routine does not help.

Reply via email to