https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63883

            Bug ID: 63883
           Summary: [5.0 Regression] ICE at -O1 -ffast-math
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Joost.VandeVondele at mat dot ethz.ch

in the day between r217531 and r217599 the following (reduced) testcase started
failing on trunk:

> cat bug.f90
  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

> gfortran -c -O1 -ffast-math bug.f90
gfortran: internal compiler error: Segmentation fault (program f951)
0x40c116 execute
    ../../gcc/gcc/gcc.c:2912
0x40c2ae do_spec_1
    ../../gcc/gcc/gcc.c:4837
0x40e94b process_brace_body
    ../../gcc/gcc/gcc.c:6120
0x40e94b handle_braces
    ../../gcc/gcc/gcc.c:6034
0x40cb71 do_spec_1
    ../../gcc/gcc/gcc.c:5491
0x40e94b process_brace_body
    ../../gcc/gcc/gcc.c:6120
0x40e94b handle_braces
    ../../gcc/gcc/gcc.c:6034
0x40cb71 do_spec_1
    ../../gcc/gcc/gcc.c:5491
0x40c9de do_spec_1
    ../../gcc/gcc/gcc.c:5606
0x40e94b process_brace_body
    ../../gcc/gcc/gcc.c:6120
0x40e94b handle_braces
    ../../gcc/gcc/gcc.c:6034
0x40cb71 do_spec_1
    ../../gcc/gcc/gcc.c:5491
0x40e94b process_brace_body
    ../../gcc/gcc/gcc.c:6120
0x40e94b handle_braces
    ../../gcc/gcc/gcc.c:6034
0x40cb71 do_spec_1
    ../../gcc/gcc/gcc.c:5491
0x40def3 do_spec_2
    ../../gcc/gcc/gcc.c:4538
0x410568 do_spec(char const*)
    ../../gcc/gcc/gcc.c:4505
0x410987 driver::do_spec_on_infiles() const
    ../../gcc/gcc/gcc.c:7674
0x410ff0 driver::main(int, char**)
    ../../gcc/gcc/gcc.c:6911
Please submit a full bug report,

Reply via email to