This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: A tale of three compilers
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Paul Thomas <paulthomas2 at wanadoo dot fr>
- Cc: fortran at gcc dot gnu dot org
- Date: Sat, 4 Dec 2004 10:50:53 -0800
- Subject: Re: A tale of three compilers
- References: <001a01c4d207$477fac10$0400000a@Paul> <200411241302.06960.paul@codesourcery.com> <001401c4da2c$d00485b0$0400000a@Paul>
On Sat, Dec 04, 2004 at 07:12:26PM +0100, Paul Thomas wrote:
> In trying to develop a sparse matrix interface with automatic garbage
> collection, I have run into a rather quirky part of fortran95. gfortran,
> g95 and Digital Fortran 6.0 all give different results for the code below.
>
> gfortran gives:
> base%this%this=>base? F
> base%this%this=>? F
> base%this=>? T
>
> g95 gives:
> base%this%this=>base? T
> base%this%this=>? F
> base%this=>? T
>
> and Digital Fortran:
> base%this%this=>base? T
> base%this%this=>? T
> base%this=>? T !!
>
If it makes you feel better, NAG's compiler gives
kargl[210] ./z
base%this%this=>base? F
base%this%this=>? T
base%this=>? T
Looks like a post to c.l.f is in order.
--
Steve