------- Comment #1 from dominiq at lps dot ens dot fr 2007-10-18 12:55 ------- This regression affects also gfortran.fortran-torture/execute/stack_varsize.f90. A reduced test case is:
! Program to test the stack variable size limit. program stack call sub1 contains ! Local variables larger than 32768 in byte size shall be placed in static ! storage area, while others be put on stack by default. subroutine sub1 real b(32768/4), c(32768/4+1) b = 20.0 c = 30.0 if ((b(1) .ne. 20.0).or.(c(1) .ne. 30.0)) call abort end subroutine end [karma] f90/bug% gfc -m64 -O3 stack_varsize_red.f90 stack_varsize_red.f90: In function 'sub1': stack_varsize_red.f90:12: internal compiler error: in change_address_1, at emit-rtl.c:1888 Note that array c alone is not sufficient to trigger the ICE. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33806