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