------- Comment #1 from jakub at gcc dot gnu dot org 2009-04-23 12:47 ------- Actually, module isn't needed for the ICE:
subroutine test (v1, v2, v3, v4) integer, target, allocatable :: v1(:) character(len=8), target, allocatable :: v2(:) integer :: v3, v4, v5 write (*,v2(1:v3)) (v1(i), i=2, v4) end subroutine test ICEs as well. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39865