From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31305 invoked by alias); 3 Sep 2010 06:20:56 -0000 Received: (qmail 31195 invoked by uid 48); 3 Sep 2010 06:20:28 -0000 Date: Fri, 03 Sep 2010 06:20:00 -0000 Subject: [Bug fortran/45513] New: BOZ kinds differently handled, F2008: BOZ in bit intrinsics X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-09/txt/msg00398.txt.bz2 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