This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/15393] New: Initialization of automatic objects not detected, causes ICE


Initialization of automatic arrays is not permitted
and should be rejected by front end.

f951: ../../gcc/gcc/fortran/trans-array.c:2882: gfc_trans_auto_array_allocation:
Assertion `!((decl)->common.static_flag)' failed.
defect.f90: In function `foo':
defect.f90:3: internal compiler error: Aborted


subroutine foo(n)
  integer :: n
  integer, dimension(n) :: t = 123  !!! this is illegal !!!
  print*, t
end subroutine foo

-- 
           Summary: Initialization of automatic objects not detected, causes
                    ICE
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lei at il dot ibm dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]