This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/41711] New: Z format does not support writing KIND=10 reals
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Oct 2009 02:59:46 -0000
- Subject: [Bug libfortran/41711] New: Z format does not support writing KIND=10 reals
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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