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