public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jv244 at cam dot ac dot uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/31207]  New: wrong code generated with gfortran
Date: Fri, 16 Mar 2007 11:29:00 -0000	[thread overview]
Message-ID: <bug-31207-6642@http.gcc.gnu.org/bugzilla/> (raw)

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


             reply	other threads:[~2007-03-16 11:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-16 11:29 jv244 at cam dot ac dot uk [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-31207-6642@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).