public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/15113] New: [gfortran] formatted reads with A format larger than destination are wrong
@ 2004-04-24 11:56 bdavis9659 at comcast dot net
2004-04-24 12:04 ` [Bug libfortran/15113] " bdavis9659 at comcast dot net
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: bdavis9659 at comcast dot net @ 2004-04-24 11:56 UTC (permalink / raw)
To: gcc-bugs
$ cat a.f
character*16 C
character*4 D
data C / 'ABCDEFGHIJKLMNOP'/
read(C,'(A7)')D
print*,D
end
$ gfortran -g -static a.f
$ ./a.out
ABCD
$ g77 a.f
$ ./a.out
DEFG
[bdavis@localhost fm411]$ gfortran --version
GNU Fortran 95 (GCC 3.5-tree-ssa 20040424 (merged 20040414))
--
Summary: [gfortran] formatted reads with A format larger than
destination are wrong
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bdavis9659 at comcast dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15113
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libfortran/15113] [gfortran] formatted reads with A format larger than destination are wrong
2004-04-24 11:56 [Bug libfortran/15113] New: [gfortran] formatted reads with A format larger than destination are wrong bdavis9659 at comcast dot net
@ 2004-04-24 12:04 ` bdavis9659 at comcast dot net
2004-04-24 13:20 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: bdavis9659 at comcast dot net @ 2004-04-24 12:04 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libfortran/15113] [gfortran] formatted reads with A format larger than destination are wrong
2004-04-24 11:56 [Bug libfortran/15113] New: [gfortran] formatted reads with A format larger than destination are wrong bdavis9659 at comcast dot net
2004-04-24 12:04 ` [Bug libfortran/15113] " bdavis9659 at comcast dot net
@ 2004-04-24 13:20 ` cvs-commit at gcc dot gnu dot org
2004-04-24 14:54 ` pinskia at gcc dot gnu dot org
2004-07-10 0:45 ` [Bug libfortran/15113] " pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-04-24 13:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-04-24 12:11 -------
Subject: Bug 15113
CVSROOT: /cvs/gcc
Module name: gcc
Branch: tree-ssa-20020619-branch
Changes by: bdavis@gcc.gnu.org 2004-04-24 12:11:48
Modified files:
libgfortran : ChangeLog
libgfortran/io : read.c
gcc/testsuite : ChangeLog.tree-ssa
Added files:
gcc/testsuite/gfortran.fortran-torture/execute: a_edit_1.f90
Log message:
PR fortran/15113
* gfortran.fortran-torture/execute/a_edit_1.f90: Add new test.
* io/read.c(read_a): Handle field width > destination and no field width.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.45&r2=1.1.2.46
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/read.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.6&r2=1.1.2.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/a_edit_1.f90.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.227&r2=1.1.2.228
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15113
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libfortran/15113] [gfortran] formatted reads with A format larger than destination are wrong
2004-04-24 11:56 [Bug libfortran/15113] New: [gfortran] formatted reads with A format larger than destination are wrong bdavis9659 at comcast dot net
2004-04-24 12:04 ` [Bug libfortran/15113] " bdavis9659 at comcast dot net
2004-04-24 13:20 ` cvs-commit at gcc dot gnu dot org
@ 2004-04-24 14:54 ` pinskia at gcc dot gnu dot org
2004-07-10 0:45 ` [Bug libfortran/15113] " pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-24 14:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-24 13:46 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15113
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libfortran/15113] formatted reads with A format larger than destination are wrong
2004-04-24 11:56 [Bug libfortran/15113] New: [gfortran] formatted reads with A format larger than destination are wrong bdavis9659 at comcast dot net
` (2 preceding siblings ...)
2004-04-24 14:54 ` pinskia at gcc dot gnu dot org
@ 2004-07-10 0:45 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-10 0:45 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15113
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-07-10 0:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-24 11:56 [Bug libfortran/15113] New: [gfortran] formatted reads with A format larger than destination are wrong bdavis9659 at comcast dot net
2004-04-24 12:04 ` [Bug libfortran/15113] " bdavis9659 at comcast dot net
2004-04-24 13:20 ` cvs-commit at gcc dot gnu dot org
2004-04-24 14:54 ` pinskia at gcc dot gnu dot org
2004-07-10 0:45 ` [Bug libfortran/15113] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).