public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31207]  New: wrong code generated with gfortran
@ 2007-03-16 11:29 jv244 at cam dot ac dot uk
  2007-03-17 15:37 ` [Bug fortran/31207] advance="no" and tabs tkoenig at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-03-16 11:29 UTC (permalink / raw)
  To: gcc-bugs

With a recent gfortran, the following compiles, but generates the wrong
results:

character(len=20) :: b
! write something no advance
open(10,FILE="fort.10",POSITION="REWIND")
write(10, '(a,t1,a)',advance='no') 'XXXXXX', 'ABC'
close(10)
! append some data
open(10,FILE="fort.10",POSITION="APPEND")
write(10, '(a)') 'DEF'
close(10)
! check what is in the first record
open(10,FILE="fort.10",POSITION="REWIND")
read(10,'(a)') b
IF (b.NE."ABCXXX") CALL ABORT()
END


-- 
           Summary: wrong code generated with gfortran
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk


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


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-05-20 22:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-16 11:29 [Bug fortran/31207] New: wrong code generated with gfortran jv244 at cam dot ac dot uk
2007-03-17 15:37 ` [Bug fortran/31207] advance="no" and tabs tkoenig at gcc dot gnu dot org
2007-03-17 16:00 ` jvdelisle at gcc dot gnu dot org
2007-03-25 23:00 ` jvdelisle at gcc dot gnu dot org
2007-03-25 23:01 ` jvdelisle at gcc dot gnu dot org
2007-04-01  4:00 ` patchapp at dberlin dot org
2007-04-01 15:24 ` jvdelisle at gcc dot gnu dot org
2007-04-01 15:29 ` jvdelisle at gcc dot gnu dot org
2007-04-13 18:45 ` [Bug fortran/31207] [4.2 only] " burnus at gcc dot gnu dot org
2007-04-17 18:08 ` fxcoudert at gcc dot gnu dot org
2007-04-18  4:25 ` [Bug fortran/31207] [4.2.1 " jvdelisle at gcc dot gnu dot org
2007-04-18  5:46 ` fxcoudert at gcc dot gnu dot org
2007-04-18 13:51 ` jvdelisle at gcc dot gnu dot org
2007-05-20 22:26 ` jvdelisle 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).