This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/50815] ICE on assignment to non-allocated deferred length character when -fbounds-check


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]