public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/37753]  New: [4.4 Regression] Convert="BIG_ENDIAN" reverses character
@ 2008-10-06 19:34 tkoenig at gcc dot gnu dot org
  2008-10-06 21:18 ` [Bug libfortran/37753] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2008-10-06 19:34 UTC (permalink / raw)
  To: gcc-bugs

>From http://gcc.gnu.org/ml/fortran/2008-10/msg00045.html :

$ cat foo.f90
 character(len=16) :: string, string2
  string='BIG_ENDIAN'

open(unit=13,form='unformatted',file='gftest.dat',convert='big_endian',status='UNKNOWN')
  write(13) string
  close(13)
end
$ gfortran foo.f90
$ ./a.out
$ od -t x1 -t a gftest.dat
0000000 00 00 00 10 20 20 20 20 20 20 4e 41 49 44 4e 45
        nul nul nul dle  sp  sp  sp  sp  sp  sp   N   A   I   D   N   E
0000020 5f 47 49 42 00 00 00 10
          _   G   I   B nul nul nul dle
0000030


-- 
           Summary: [4.4 Regression] Convert="BIG_ENDIAN" reverses character
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: major
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkoenig at gcc dot gnu dot org


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


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

end of thread, other threads:[~2008-10-09 21:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-06 19:34 [Bug libfortran/37753] New: [4.4 Regression] Convert="BIG_ENDIAN" reverses character tkoenig at gcc dot gnu dot org
2008-10-06 21:18 ` [Bug libfortran/37753] " pinskia at gcc dot gnu dot org
2008-10-07  2:55 ` jvdelisle at gcc dot gnu dot org
2008-10-07 12:55 ` jakub at gcc dot gnu dot org
2008-10-07 20:42 ` tkoenig at gcc dot gnu dot org
2008-10-09 19:31 ` tkoenig at gcc dot gnu dot org
2008-10-09 21:59 ` tkoenig 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).