[Bug libfortran/30200] write(*,myfmt="(1X,a,'xyz')") "A" prints Az' instead of Axyz

jv244 at cam dot ac dot uk gcc-bugzilla@gcc.gnu.org
Thu Dec 14 06:41:00 GMT 2006



------- Comment #7 from jv244 at cam dot ac dot uk  2006-12-14 06:41 -------
(In reply to comment #6)
> More information.  I get Tobias bad result with -m64 on x86-64-Linux.  The
> problem goes away with -m32.
> 
> $ gfortran -m32 pr30200-2.f90 
> $ ./a.out
>  Axyz
> $ gfortran -m64 pr30200-2.f90 
> $ ./a.out
>  Az'

whereas -m32 is printing the right result, I think it is coincidence, at least
to original testcase still yields valgrind errors at runtime if compiled with
-m32


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30200



More information about the Gcc-bugs mailing list