[Bug middle-end/27870] ICE in build_outer_var_ref, at omp-low.c:585 with openmp

2006-06-02 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2006-06-02 11:57 --- This is a dup of PR27416 - the ICE on invalid part of that bug. The testcase violates OpenMP 2.5 section 2.8.3 restriction: "A list item that appears in a reduction clause of a work-sharing construct must be shared in

[Bug middle-end/27870] ICE in build_outer_var_ref, at omp-low.c:585 with openmp

2006-06-01 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-06-02 03:01 --- Note I might have reduced this testcase too much as I remove the reference to cik from the loop. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27870

[Bug middle-end/27870] ICE in build_outer_var_ref, at omp-low.c:585 with openmp

2006-06-01 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-06-02 02:54 --- Confirmed, reduced testcase: void mat_product(double **const b, unsigned m) { int j; double cik = 0; #pragma omp for reduction(+: cik) for (j = 0; j < m; ++j) ; } So the reduction in general is causing it. Th