------- Additional Comments From paulthomas2 at wanadoo dot fr  2005-10-01 
16:59 -------
Subject: Re:  ICE in f951 with nested, recursive derived
 types

pinskia at gcc dot gnu dot org wrote:

>------- Additional Comments From pinskia at gcc dot gnu dot org  2005-10-01 
>15:38 -------
>Confirmed.  This is invalid code unless they used POINTER correct?
>
>  
>
Andrew,

I would say so, yes, but it is possibly invalid even with a pointer -see 
the fortran list.

With the patch that I have readied for PR24092, gfortran does fine with 
the pointer case; Lahey, Intel and Digital all barf on it.

It seems that recursion detection is done in the commercial compilers by 
demanding that derived type components are already specified.  I do not 
see this anywhere in the standard and so have built a little recusion 
detector for resolve.c.....

I will endeavour to clarify this point before heading off on a trip 
tomorrow night.

Best regards

Paul



-- 


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

Reply via email to