[Bug fortran/38249] read(*,*) seems to have broken

kargl at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Nov 24 19:24:00 GMT 2008



------- Comment #5 from kargl at gcc dot gnu dot org  2008-11-24 19:22 -------
(In reply to comment #3)


> 
> Now for the more difficult part.
> 
> I'll attach a tar file containing a sample program and a makefile.  It turns
> out that the problem isn't with the read at all, rather it arises when I try to
> write to an array that is equivalenced to another.  (This is all in the file
> niovers.f).   Worse, the bug is triggered by passing -malign-double to gfortran
> 
> I'm going to save this and make the attachment.
> 

Does the code work without -malign-double?

Don't use -malign-double.  If you absolutely think you need -malign-double,
you need to recompile the runtime library with this option.  Also see the
gcc manual for a description of this option.


-- 


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



More information about the Gcc-bugs mailing list