This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30323] shared clauses for const variables are illigal
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Dec 2006 01:49:45 -0000
- Subject: [Bug c/30323] shared clauses for const variables are illigal
- References: <bug-30323-10151@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-12-29 01:49 -------
Real testcase:
void foo()
{
int A[20];
const int x = 3;
int i;
#pragma omp parallel for shared(x)
for(i = 0; i < 20; i++)
A[i] = x;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30323