public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/29451]  New: Fortran runtime error: Attempt to allocate a negative amount of memory...
@ 2006-10-13  9:46 pmason at ricardo dot com
  2006-10-13 16:25 ` [Bug fortran/29451] " jvdelisle at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pmason at ricardo dot com @ 2006-10-13  9:46 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/29451] Fortran runtime error: Attempt to allocate a negative amount of memory...
  2006-10-13  9:46 [Bug fortran/29451] New: Fortran runtime error: Attempt to allocate a negative amount of memory pmason at ricardo dot com
@ 2006-10-13 16:25 ` jvdelisle at gcc dot gnu dot org
  2006-10-16 13:08 ` pault at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-10-13 16:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jvdelisle at gcc dot gnu dot org  2006-10-13 16:24 -------
Not specific to Suze, Confirmed on i686-linux. Interesting bug.


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-10-13 16:24:52
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29451


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/29451] Fortran runtime error: Attempt to allocate a negative amount of memory...
  2006-10-13  9:46 [Bug fortran/29451] New: Fortran runtime error: Attempt to allocate a negative amount of memory pmason at ricardo dot com
  2006-10-13 16:25 ` [Bug fortran/29451] " jvdelisle at gcc dot gnu dot org
@ 2006-10-16 13:08 ` pault at gcc dot gnu dot org
  2006-10-16 15:30 ` patchapp at dberlin dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-10-16 13:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pault at gcc dot gnu dot org  2006-10-16 13:07 -------
Created an attachment (id=12444)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12444&action=view)
Full patch and testcase for this PR

The pigeon seems to have got lost on the way to submit this patch to GNU
central, so here it is anyway!

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pault at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29451


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/29451] Fortran runtime error: Attempt to allocate a negative amount of memory...
  2006-10-13  9:46 [Bug fortran/29451] New: Fortran runtime error: Attempt to allocate a negative amount of memory pmason at ricardo dot com
  2006-10-13 16:25 ` [Bug fortran/29451] " jvdelisle at gcc dot gnu dot org
  2006-10-16 13:08 ` pault at gcc dot gnu dot org
@ 2006-10-16 15:30 ` patchapp at dberlin dot org
  2006-10-16 21:00 ` patchapp at dberlin dot org
  2006-10-17 11:32 ` pault at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: patchapp at dberlin dot org @ 2006-10-16 15:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from patchapp at dberlin dot org  2006-10-16 15:30 -------
Subject: Bug number PR29451

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-10/msg00805.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29451


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/29451] Fortran runtime error: Attempt to allocate a negative amount of memory...
  2006-10-13  9:46 [Bug fortran/29451] New: Fortran runtime error: Attempt to allocate a negative amount of memory pmason at ricardo dot com
                   ` (2 preceding siblings ...)
  2006-10-16 15:30 ` patchapp at dberlin dot org
@ 2006-10-16 21:00 ` patchapp at dberlin dot org
  2006-10-17 11:32 ` pault at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: patchapp at dberlin dot org @ 2006-10-16 21:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from patchapp at dberlin dot org  2006-10-16 21:00 -------
Subject: Bug number PR29451

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-10/msg00822.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29451


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/29451] Fortran runtime error: Attempt to allocate a negative amount of memory...
  2006-10-13  9:46 [Bug fortran/29451] New: Fortran runtime error: Attempt to allocate a negative amount of memory pmason at ricardo dot com
                   ` (3 preceding siblings ...)
  2006-10-16 21:00 ` patchapp at dberlin dot org
@ 2006-10-17 11:32 ` pault at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-10-17 11:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pault at gcc dot gnu dot org  2006-10-17 11:32 -------
In spite of the commit message going to the wrong PR, this was fixed on trunk. 
I will put the numbers right in the ChangeLog tonight.

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29451


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-10-17 11:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-13  9:46 [Bug fortran/29451] New: Fortran runtime error: Attempt to allocate a negative amount of memory pmason at ricardo dot com
2006-10-13 16:25 ` [Bug fortran/29451] " jvdelisle at gcc dot gnu dot org
2006-10-16 13:08 ` pault at gcc dot gnu dot org
2006-10-16 15:30 ` patchapp at dberlin dot org
2006-10-16 21:00 ` patchapp at dberlin dot org
2006-10-17 11:32 ` pault at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).