GFortran Bug Report: Size of pointer variables
Steve Kargl
sgk@troutmask.apl.washington.edu
Tue Dec 15 21:24:00 GMT 2009
On Tue, Dec 15, 2009 at 03:52:50PM -0500, Tink,James [NCR] wrote:
>
> Which compiler is producing the correct output and why?
>
See Tobias' email for an answer to the above question.
To add to your confusion, with gfortran mainline I see
troutmask:sgk[215] gfc4x -o z -O2 fk.f90
troutmask:sgk[216] ./z
1
troutmask:sgk[217] gfc4x -o z -O fk.f90
troutmask:sgk[218] ./z
1
troutmask:sgk[219] gfc4x -o z fk.f90
troutmask:sgk[220] ./z
-6928
> gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)
If you can, it would be of significant use to you
to upgrade to at least 4.4.2.
--
Steve
More information about the Fortran
mailing list