[Bug fortran/41003] New: Array constructor gives seg fault
t dot r dot hopkins at kent dot ac dot uk
gcc-bugzilla@gcc.gnu.org
Fri Aug 7 18:11:00 GMT 2009
program bug
integer :: a(5) = (/1,2,3,4,5/)
integer, allocatable:: b(:)
b = (/ a(1:5), a(1:5) /)
print *, b
endprogram bug
integer :: a(5) = (/1,2,3,4,5/)
integer, allocatable:: b(:)
b = (/ a(1:5), a(1:5) /)
print *, b
end
The assignment to b generates a seg fault. I believe this to be standard F2003
--
Summary: Array constructor gives seg fault
Product: gcc
Version: 4.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: t dot r dot hopkins at kent dot ac dot uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41003
More information about the Gcc-bugs
mailing list