This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/15335] runtime error "Attempt to allocate a negative amount of memory"
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jan 2006 23:55:18 -0000
- Subject: [Bug fortran/15335] runtime error "Attempt to allocate a negative amount of memory"
- References: <bug-15335-7283@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from pinskia at gcc dot gnu dot org 2006-01-09 23:55 -------
We don't get an error message but instead we call _gfortran_internal_malloc
with a zero value and invoked undefined behavior in malloc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15335