From b9296a00e8528e7cd7a2539952884d2c81bf5383 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 17 Nov 2014 09:38:48 +0000 Subject: [PATCH] re PR tree-optimization/63898 (r217560 caused segfault building 462.libquantum from cpu2006) 2014-11-17 Richard Biener PR middle-end/63898 PR middle-end/63883 * gfortran.dg/pr63883.f90: New testcase. From-SVN: r217652 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gfortran.dg/pr63883.f90 | 13 +++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/pr63883.f90 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e0333c9fa7c..eefdf3b29bc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2014-11-17 Richard Biener + + PR middle-end/63898 + PR middle-end/63883 + * gfortran.dg/pr63883.f90: New testcase. + 2014-11-17 Markus Trippelsdorf PR ipa/63894 diff --git a/gcc/testsuite/gfortran.dg/pr63883.f90 b/gcc/testsuite/gfortran.dg/pr63883.f90 new file mode 100644 index 00000000000..002e5bd5e81 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/pr63883.f90 @@ -0,0 +1,13 @@ +! { dg-do compile } +! { dg-additional-options "-ffast-math" } + SUBROUTINE influence_factor ( gftype, error ) + INTEGER, PARAMETER :: dp=8 + INTEGER :: k,n,lb(3),ub(3),dim,pt + COMPLEX(KIND=dp) :: b_m, exp_m, sum_m + DO k = 0, n-2 + DO pt = lb (dim), ub (dim) + sum_m = CMPLX ( 0.0_dp, 0.0_dp,KIND=dp) + b_m = exp_m ** ( n - 1 ) / sum_m + END DO + END DO + END SUBROUTINE influence_factor -- 2.30.2