Summary: | ICE with #pragma omp parallel for in try/catch statement | ||
---|---|---|---|
Product: | gcc | Reporter: | Sebastian Steiger <steigers> |
Component: | middle-end | Assignee: | Jakub Jelinek <jakub> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dnovillo, gcc-bugs, reichelt |
Priority: | P3 | Keywords: | ice-on-valid-code, monitored, openmp |
Version: | 4.2.1 | ||
Target Milestone: | 4.3.0 | ||
URL: | http://gcc.gnu.org/ml/gcc-patches/2008-01/msg01152.html | ||
Host: | Target: | ||
Build: | Known to work: | 4.3.0 | |
Known to fail: | 4.2.0 4.2.2 | Last reconfirmed: | 2008-01-24 16:37:11 |
Attachments: |
Source code which fails to compile
Preprocessed file |
Description
Sebastian Steiger
2007-09-07 14:40:25 UTC
Created attachment 14169 [details]
Source code which fails to compile
Created attachment 14170 [details]
Preprocessed file
Confirmed. Shorter testcase (just compile with "-fopenmp"): ================================== struct A { int n; void foo(); }; void A::foo() { try { #pragma omp parallel for for (int i = 0; i < n; ++i) ; } catch(...) {} } ================================== Subject: Bug 33333 Author: jakub Date: Fri Jan 25 09:12:57 2008 New Revision: 131820 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131820 Log: PR middle-end/33333 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY. * g++.dg/gomp/pr33333.C: New test. Added: trunk/gcc/testsuite/g++.dg/gomp/pr33333.C Modified: trunk/gcc/ChangeLog trunk/gcc/gimplify.c trunk/gcc/testsuite/ChangeLog Fixed on the trunk. |