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/20538] compiling -finline-functions -O2 and we crash at runtime


------- Additional Comments From tobi at gcc dot gnu dot org  2005-03-19 01:47 -------
The failure is dependent on the function being a nested function, the following
doesn't segfault at -O2:
  subroutine advance(bodies)
    real, dimension(:)::bodies
    bodies = 1.0
  end subroutine advance
interface
  subroutine advance(bodies)
    real, dimension(:)::bodies
  end subroutine advance
end interface
  real vx(1)
  num=2
  do i=1,num
     call advance(vx)
  end do
end


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20538


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