public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/41711]  New: Z format does not support writing KIND=10 reals
@ 2009-10-15  2:59 jvdelisle at gcc dot gnu dot org
  2009-10-15  3:14 ` [Bug libfortran/41711] " jvdelisle at gcc dot gnu dot org
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2009-10-15  2:59 UTC (permalink / raw)
  To: gcc-bugs

This problem reported by Steve Kargl on the list.  The conversion routines in
write.c do not support conversion of kind=10 reals to an integer format.  There
is no kind=10 integer.  I think the way to handle this is either improve the
error message or convert to kind=16 and pad zeros or convert to kind = 8 and
truncate.

I am not sure the best way to go, but clearly the error message could be
improved in the least.

Test case:

program z

   implicit none
   real(10) e
   !
   ! The next write fails due to an internal error, so
   ! Z formatting doesn't allow inspection of the last
   ! 4 bytes.
   !
   e = 0.0
   write(*,'(E24.17,1X,Z20))') e, e

end program z


-- 
           Summary: Z format does not support writing KIND=10 reals
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: jvdelisle at gcc dot gnu dot org
        ReportedBy: jvdelisle at gcc dot gnu dot org


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


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

end of thread, other threads:[~2009-12-08 14:25 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-15  2:59 [Bug libfortran/41711] New: Z format does not support writing KIND=10 reals jvdelisle at gcc dot gnu dot org
2009-10-15  3:14 ` [Bug libfortran/41711] " jvdelisle at gcc dot gnu dot org
2009-10-15  3:15 ` jvdelisle at gcc dot gnu dot org
2009-10-15  3:55 ` kargl at gcc dot gnu dot org
2009-10-15  5:11 ` jvdelisle at gcc dot gnu dot org
2009-10-15  8:48 ` burnus at gcc dot gnu dot org
2009-10-15  9:25 ` dominiq at lps dot ens dot fr
2009-10-16  1:41 ` jvdelisle at gcc dot gnu dot org
2009-10-16  1:58 ` jvdelisle at gcc dot gnu dot org
2009-10-16  8:13 ` dominiq at lps dot ens dot fr
2009-10-29 19:20 ` jvdelisle at gcc dot gnu dot org
2009-10-31  1:49 ` jvdelisle at gcc dot gnu dot org
2009-11-04  0:33 ` [Bug libfortran/41711] BOZ format does not support reading large kind reals jvdelisle at gcc dot gnu dot org
2009-12-05  6:05 ` jvdelisle at gcc dot gnu dot org
2009-12-05 14:29 ` dominiq at lps dot ens dot fr
2009-12-05 15:01 ` [Bug libfortran/41711] [F2008] " burnus at gcc dot gnu dot org
2009-12-06  1:16 ` kargl at gcc dot gnu dot org
2009-12-07  1:35 ` jvdelisle at gcc dot gnu dot org
2009-12-07  9:23 ` burnus at gcc dot gnu dot org
2009-12-07  9:33 ` burnus at gcc dot gnu dot org
2009-12-07 14:01 ` jvdelisle at gcc dot gnu dot org
2009-12-07 14:43 ` burnus at gcc dot gnu dot org
2009-12-07 14:56 ` dominiq at lps dot ens dot fr
2009-12-07 15:56 ` burnus at gcc dot gnu dot org
2009-12-08 14:12 ` burnus at gcc dot gnu dot org
2009-12-08 14:25 ` [Bug libfortran/41711] [F2008] BOZ edit-descr " 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).