------- 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


Reply via email to