From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32592 invoked by alias); 13 Oct 2006 09:46:49 -0000 Received: (qmail 32572 invoked by uid 48); 13 Oct 2006 09:46:40 -0000 Date: Fri, 13 Oct 2006 09:46:00 -0000 Subject: [Bug fortran/29451] New: Fortran runtime error: Attempt to allocate a negative amount of memory... X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pmason at ricardo dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-10/txt/msg01108.txt.bz2 List-Id: Get following run-time message: > Fortran runtime error: Attempt to allocate a negative amount of memory. when running following program (fortran 90): !--------------------------------- program fred print*,'Calling jackal...' call jackal(1,0) call jackal(2,0) end subroutine jackal(b,c) integer :: b,c integer :: jello(b:c) print*,'In jackal',size(jello) if (size(jello) > 0 ) then jello = 9 print*,'jello = ',jello end if end subroutine jackal !--------------------------------- Above is compiled as "f90 tester.f90" on suse 9 linux box. Using GCC 4.2.0 20061012 (experimental). -- Summary: Fortran runtime error: Attempt to allocate a negative amount of memory... Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pmason at ricardo dot com GCC build triplet: gcc version 4.2.0 20061012 (experimental) GCC host triplet: suse 9 GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29451