http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50815
--- Comment #1 from A. Rohou <rohou at brandeis dot edu> 2011-10-21 00:19:10 UTC --- I have come up with an even simpler reproducer: $ cat test2.f90 subroutine test(string) character(len=:), allocatable :: string allocate(character(len=3) :: string) end subroutine test $ gfortran -c -fbounds-check test2.f90 test2.f90: In function ‘test’: test2.f90:1:0: internal compiler error: in copy_to_mode_reg, at explow.c:635 Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.