[Bug c/30323] shared clauses for const variables are illigal

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-12-29 01:57 --- *** Bug 30326 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30323

[Bug c/30323] shared clauses for const variables are illigal

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-12-29 01:56 --- 2.8.1.1 Sharing Attribute Rules for Variables Referenced in a Construct line 7 on page 64: Variables with const-qualified type having nomutable member are shared. Variables with predetermined sharing attributes m

[Bug c/30323] shared clauses for const variables are illigal

2006-12-28 Thread pinskia 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

[Bug c/30323] shared clauses for const variables are illigal

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-12-29 01:46 --- *** Bug 30325 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30323

[Bug c/30323] shared clauses for const variables are illigal

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-12-29 01:46 --- *** Bug 30324 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30323