This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/23091] ICE in gfc_trans_auto_array_allocation
- 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: 5 Jan 2006 14:18:47 -0000
- Subject: [Bug fortran/23091] ICE in gfc_trans_auto_array_allocation
- References: <bug-23091-1492@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from pinskia at gcc dot gnu dot org 2006-01-05 14:18 -------
(In reply to comment #6)
> same (?) bug on GNU Fortran 95 (GCC) 4.2.0 20060104
Yes this is the same bug, we should not promote variable length (hopefully that
is the correct term) arrays to save/static (a C/GCC term).
And if it is explicitly we should reject it like IFC does:
fortcom: Error: t.f90, line 2: An automatic object must not appear in a SAVE
statement or be declared with the SAVE attribute. [MYARRAY]
Dimension myArray(n1)
................^
compilation aborted for t.f90 (code 1)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23091