This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: segmentation fault with gfortran


On my i686-linux, your testcase doesn't segfault, but the following
(slightly reworked) does, on both 4.0 and mainline. I guess there's no
way we can reduce it any further. Can you file it in bugzilla?

program testsuite
 real xco(2)
 xco = func2(2)

contains
!------------------------------------------------------------------------------
function func1(N)
 implicit none
 real :: func1(0:N)
 integer, intent(in) :: N

 func1(:) = 1.0
end function func1
!------------------------------------------------------------------------------
function func2(N)
 implicit none
 real :: func2(0:N)
 integer, intent(in) :: N

 func2(:) = 1.0 + func1(N)
end function func2

end program testsuite


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