[F03] EXTENDS_TYPE_OF, CLASS IS and libgfortran

FX fxcoudert@gmail.com
Mon Nov 9 00:05:00 GMT 2009


Hi Janus,

> Btw, I'm not aware of any compiler besides gfortran (fortran-dev
> branch), which is able to handle the new test case
> extends_type_of_1.f03 ...

First, congrats to all on all the OO goodness that is creeping into  
gfortran. I check on this list from time to time, and you seem to be  
making very good progress.

I'm all the more sorry to send an email just to contradict you. The  
IBM compiler handles this testcase just fine, but even more, it  
actually finds an error in it:

> "a.f03", line 10.13: 1514-068 (E) Explicit type does not agree with  
> type of INTRINSIC function.  Type specification is ignored.

(though the test then runs fine). After looking at my F2008 draft, I  
think I concur with it: EXTENDS_TYPE_OF should return a default  
logical scalar, not an integer.


Regards,
FX



More information about the Fortran mailing list