From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6262 invoked by alias); 6 Aug 2007 13:06:41 -0000 Received: (qmail 4321 invoked by uid 48); 6 Aug 2007 13:06:27 -0000 Date: Mon, 06 Aug 2007 13:06:00 -0000 Message-ID: <20070806130627.4309.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/33001] error with hexadecimal DATA In-Reply-To: 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: 2007-08/txt/msg00362.txt.bz2 ------- Comment #5 from burnus at gcc dot gnu dot org 2007-08-06 13:06 ------- > The numbers are 32-bit, so why an overflow? huge(0): 2147483647 ! biggest (positive) number fitting into integer(4) Z'FFFFFFFF': 4294967295 I would argue that 4294967295 is bigger than 2147483647. If one allows the overflow or regards it as bit pattern, one obtains "-1". This is also what one gets for -fno-range-check. The program is simply invalid though as vendor extension many compilers allow it. One can discuss about the default behaviour in gfortran [write to the mailing list and not here], but the current behaviour has some merits, though I think one should point to the option which allows the compilation (see patch in comment #2). ------------- (In reply to comment #4) > d1mach.f:2: fatal error: gfc_todo: Not Implemented: Initialization of > overlapping variables This was fixed meanwhile. gfortran 4.3 does not have this error any more. 4.3 binaries are available at: http://gcc.gnu.org/wiki/GFortranBinaries -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33001