public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/31915]  New: Failure with unf_io_convert_3.f90
@ 2007-05-14  0:13 jvdelisle at gcc dot gnu dot org
  2007-05-14  6:51 ` [Bug libfortran/31915] " burnus at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-05-14  0:13 UTC (permalink / raw)
  To: gcc-bugs

With Dominique's fix so that the test case runs, I get failure.

Here is a slightly modified version to illustrate:

! { dg-do run }
! { dg-require-effective-target fortran_large_real }
program main
  integer,parameter :: k = selected_real_kind (precision (0.0_8) + 1)
  real(kind=k) a,b,c
  a = 1.1_k
  open(10,convert="swap",form="unformatted") ! { dg-warning "Extension:
CONVERT" }
  write(10) a
  backspace 10
  read (10) b
  close(10,status="delete")
  print *, a, b
  !if (a /= b) call abort
  write (11) a
  backspace 11
  open (11,form="unformatted")
  read (11) c
  print *, a, c
  if (a .ne. c) call abort
  close (11, status="delete")
end program main

The first test fails miserably.
$ ./a.out
   1.100000000000000000        3.9138956899828401554E-4942
   1.100000000000000000         1.100000000000000000      

I gather that this will not show up on some platforms.


-- 
           Summary: Failure with unf_io_convert_3.f90
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jvdelisle at gcc dot gnu dot org
  GCC host triplet: x86-64-pc-Linux


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


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

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-14  0:13 [Bug libfortran/31915] New: Failure with unf_io_convert_3.f90 jvdelisle at gcc dot gnu dot org
2007-05-14  6:51 ` [Bug libfortran/31915] " burnus at gcc dot gnu dot org
2007-05-14 20:20 ` patchapp at dberlin dot org
2007-05-15 10:17 ` burnus at gcc dot gnu dot org
2007-05-15 10:29 ` [Bug libfortran/31915] [4.2 only] " burnus at gcc dot gnu dot org
2007-05-22 14:28 ` [Bug libfortran/31915] " burnus at gcc dot gnu dot org
2007-05-22 14:28 ` [Bug libfortran/31915] [4.2 only] " burnus 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).