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