From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27364 invoked by alias); 17 Apr 2009 22:42:48 -0000 Received: (qmail 27317 invoked by uid 48); 17 Apr 2009 22:42:38 -0000 Date: Fri, 17 Apr 2009 22:42:00 -0000 Message-ID: <20090417224238.27316.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/31243] truncating strings longer than 2**32 characters In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dominiq at lps dot ens dot fr" 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: 2009-04/txt/msg01509.txt.bz2 ------- Comment #7 from dominiq at lps dot ens dot fr 2009-04-17 22:42 ------- Compiling the code in comment #1 gives: [ibook-dhum] f90/bug% gfc42 pr31243.f90 pr31243.f90:12.15: print *, len(ch) 1 Error: Result of LEN overflows its kind at (1) It compiles with -fdefault-integer-8 and gives 4294967300 4 when executed. Note that "print *,ch(1:2_8**32_8+3_8)" prints three spaces and the value of 'i' in the subroutine is 4294967300. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31243