This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/50815] ICE on assignment to non-allocated deferred length character when -fbounds-check
- From: "rohou at brandeis dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 21 Oct 2011 00:19:10 +0000
- Subject: [Bug fortran/50815] ICE on assignment to non-allocated deferred length character when -fbounds-check
- Auto-submitted: auto-generated
- References: <bug-50815-4@http.gcc.gnu.org/bugzilla/>
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.