[Bug rtl-optimization/49472] [4.7 regression] Compiler segfault on valid code
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 20 12:13:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49472
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |janus at gcc dot gnu.org
--- Comment #3 from janus at gcc dot gnu.org 2011-06-20 12:12:31 UTC ---
Slightly reduced test case:
module MassiveNu
implicit none
contains
subroutine Nu_derivs
integer, parameter :: dl = KIND(1.d0)
integer, parameter :: nqmax0 = 3
real(dl) :: adotoa,aq,aqdot,vdot, g1(nqmax0+1)
integer :: iq
do iq=2,(nqmax0+1)
aq=1./((iq-1.5d0)*1.)
aqdot=aq*adotoa
vdot=-aq*aqdot/(1.+aq*aq)**1.5d0
g1(iq)=vdot
end do
call dummy(g1)
end subroutine
end module
This fails with
Program received signal SIGSEGV, Segmentation fault.
0x0000000000b27430 in simplify_const_unary_operation (code=Cannot access memory
at address 0x7fffff7fefec) at /home/jweil/gcc47/trunk/gcc/simplify-rtx.c:1212
More information about the Gcc-bugs
mailing list