This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/15113] [gfortran] formatted reads with A format larger than destination are wrong
- From: "bdavis9659 at comcast dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Apr 2004 11:27:19 -0000
- Subject: [Bug libfortran/15113] [gfortran] formatted reads with A format larger than destination are wrong
- References: <20040424103733.15113.bdavis9659@comcast.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bdavis9659 at comcast dot net 2004-04-24 11:27 -------
very closely related is this problem, which can probably be fixed at the same time:
$ cat b.f
character*8 A
data A /'12345678'/
character*4 B
read(A,'(A)')B
print*,B
end
$ /usr/local/bin/current/bin/gfortran -static b.f
$ ./a.out
Segmentation fault (core dumped)
$ g77 b.f
$ ./a.out
1234
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15113