This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31188] New: ICE on vector subscript of a parameter array
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2007 14:27:10 -0000
- Subject: [Bug fortran/31188] New: ICE on vector subscript of a parameter array
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code triggers the gcc_assert (begin->expr_type == EXPR_ARRAY)
assertion in find_array_section (in expr.c):
module foo_mod
implicit none
character (len=1), parameter :: letters(2) = (/"a","b"/)
contains
subroutine concat(ivec)
integer, intent(in) :: ivec(:)
write (*,*) "a" // letters(ivec)
end subroutine concat
end module foo_mod
I'm not sure it should end up in that function, however, and I'm not sure why
we end up here.
--
Summary: ICE on vector subscript of a parameter array
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fxcoudert at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31188