Subroutine My(n1)                  
      Dimension myArray(n1)
      Save     ! or 'Save myArray'
      Call xxx(myArray)      
      Return                                              
      End                                                

gives 
internal compiler error: in gfc_trans_auto_array_allocation, at
fortran/trans-array.c:3047

g77 compiles the code, and makes a proper warning if instead of 'Save', 'Save
myArray' is used..

-- 
           Summary: ICE in gfc_trans_auto_array_allocation
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: valera dot veryazov at teokem dot lu dot se
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i386 Linux


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

Reply via email to