[Bug libfortran/15113] [gfortran] formatted reads with A format larger than destination are wrong

bdavis9659 at comcast dot net gcc-bugzilla@gcc.gnu.org
Sat Apr 24 12:04:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list