This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/16487] gfortran core dump on big array
- From: "olchansk at panix dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jul 2004 21:06:16 -0000
- Subject: [Bug fortran/16487] gfortran core dump on big array
- References: <20040712021729.16487.olchansk@panix.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From olchansk at panix dot com 2004-07-12 21:06 -------
Note that the test case code is flawed- it is pointless to explicitely
initialize a global variable to zero- it is located in BSS and it is by
definition zero-filled.
I suggest that instead of "properly fixing" this core dump, gfortran should trap
this condition and give an error "not implemented: sorry, array 'foo' is too big
to be initialized".
K.O.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16487