This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: [F03] EXTENDS_TYPE_OF, CLASS IS and libgfortran


Hi FX,

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

sure, that was to be expected. After all I didn't claim that there
*is* no compiler which can handle the test case, just that I'm not
*aware* of any (in that sense it's no contradiction). I checked all
compilers I have access to, which just doesn't include the IBM
compiler.


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

Uh, sorry about that (don't know how the 'integer' crept in, of course
it should be 'logcial'). I will correct this, and add a check to
prevent this kind of mis-declaration.

Thanks for your comments ...

Cheers,
Janus


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