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/41003] New: Array constructor gives seg fault


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


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