As reported by Fran,cois-Xavier at


  integer(kind=8) :: i
  i = 0
  print *, kind(ior (i, z"ff1e"))
  print *, kind(ior (0_8, z"ff1e"))

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
           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

Reply via email to