This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/15393] New: Initialization of automatic objects not detected, causes ICE
- From: "lei at il dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 May 2004 11:49:40 -0000
- Subject: [Bug fortran/15393] New: Initialization of automatic objects not detected, causes ICE
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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