Compiling the following code with "gcc -fopenmp -O -Wall" I get a hosed error message:
============================ void foo() { int A[20]; const int x = 3; #pragma omp parallel for shared(x) for(i = 0; i < 20; i++) A[i] = x; } } ============================ foo.c: In function 'foo': foo.c:8: error: 'x' is predetermied 'shared' for 'shared' -- Summary: shared clauses for const variables are illigal Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kuba at et dot pl http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30326