This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [F03] EXTENDS_TYPE_OF, CLASS IS and libgfortran
- From: Janus Weil <janus at gcc dot gnu dot org>
- To: FX <fxcoudert at gmail dot com>
- Cc: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>, Fortran List <fortran at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: Sun, 8 Nov 2009 23:15:18 +0100
- Subject: Re: [F03] EXTENDS_TYPE_OF, CLASS IS and libgfortran
- References: <7A917BE9-3AAB-48AB-9A8B-1C3C9C0F529F@gmail.com>
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