This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41003] New: Array constructor gives seg fault
- From: "t dot r dot hopkins at kent dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Aug 2009 18:10:25 -0000
- Subject: [Bug fortran/41003] New: Array constructor gives seg fault
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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