From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5759 invoked by alias); 28 Mar 2007 21:50:18 -0000 Received: (qmail 5653 invoked by uid 48); 28 Mar 2007 21:50:08 -0000 Date: Wed, 28 Mar 2007 21:50:00 -0000 Message-ID: <20070328215008.5652.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: "fxcoudert 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-03/txt/msg02676.txt.bz2 ------- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-03-28 22:50 ------- Same thing happens for local variables, character arguments and character functions... Example of the first case: subroutine foo(i) integer(kind=8), intent(in) :: i character(len=i) :: x print *, len(x) end subroutine foo program main character (len=2_8**32_8+4_8) :: ch ch = ' ' print *,ch(1:2_8**32_8+3_8) print *, len(ch) call foo(2_8**32_8+4_8) end program main -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2007-03-17 20:06:45 |2007-03-28 22:50:08 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31243