This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]