[Bug fortran/50815] ICE on assignment to non-allocated deferred length character when -fbounds-check
rohou at brandeis dot edu
gcc-bugzilla@gcc.gnu.org
Fri Oct 21 00:19:00 GMT 2011
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.
More information about the Gcc-bugs
mailing list