public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45513] New: BOZ kinds differently handled, F2008: BOZ in bit intrinsics
@ 2010-09-03 6:20 burnus at gcc dot gnu dot org
0 siblings, 0 replies; only message in thread
From: burnus at gcc dot gnu dot org @ 2010-09-03 6:20 UTC (permalink / raw)
To: gcc-bugs
As reported by Fran,cois-Xavier at
http://gcc.gnu.org/ml/fortran/2010-08/msg00484.html
a)
integer(kind=8) :: i
i = 0
print *, kind(ior (i, z"ff1e"))
print *, kind(ior (0_8, z"ff1e"))
end
gives different different results for the compile-time and run-time evaluation.
b) F2008 allows BOZ in bit intrinsics, which need to be properly handled; for
IOR(I,J) one has:
* I or J can be BOZ or integers, but they can't both be BOZ.
* "Result Characteristics. Same as I if I is of type integer; otherwise, same
as J."
--
Summary: BOZ kinds differently handled, F2008: BOZ in bit
intrinsics
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45513
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-09-03 6:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-03 6:20 [Bug fortran/45513] New: BOZ kinds differently handled, F2008: BOZ in bit intrinsics 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).