[Bug c/30326] New: shared clauses for const variables are illigal
kuba at et dot pl
gcc-bugzilla@gcc.gnu.org
Fri Dec 29 01:53:00 GMT 2006
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
More information about the Gcc-bugs
mailing list