This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/66193] ICE for initialisation of some non-zero-sized arrays
- From: "gerhard dot steinmetz dot fortran at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 18 May 2015 14:36:49 +0000
- Subject: [Bug fortran/66193] ICE for initialisation of some non-zero-sized arrays
- Auto-submitted: auto-generated
- References: <bug-66193-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66193
--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
For integer instead of real ...
program p
integer :: z(2)
z = 1.2 + [integer :: 3.5, 4.5]
print *, z
end
it compiles with gfortran snippet.f90
but running ./a.out prints an unexpected
1 1
---
On the other hand, something like this with a zero-sized array ...
program p
integer(8) :: z(2)
z = 1 + [ integer(8) :: [ integer(4) :: ], 1, 2 ]
end
gives an ...
f951: internal compiler error: Segmentation fault