[Bug libfortran/41711] Z format does not support writing KIND=10 reals

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Oct 15 08:48:00 GMT 2009



------- Comment #5 from burnus at gcc dot gnu dot org  2009-10-15 08:48 -------
> The patch is fine for 64-bit architectures.
I agree and it should be applied - incl. testcase.

> On 32-bit architectures
> such as i686-*-freebsd the patch fails because there is a REAL(10)
> but no INTEGER(16).

Hmm, the question is how to solve this properly. Is the current status
"Internal Error: bad integer kind" sufficient? I am not sure I like the idea of
silent truncation.

> Truncating to INTEGER(*) would seem appealing
> except that I was specifically interested in the bits on the last 
> few bytes. :(

How about TRANSFER to "integer(8), dimension(2)" ? and then printing the
result? ("= 0" the integer before the TRANSFER.)


-- 


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



More information about the Gcc-bugs mailing list