--- 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
--- 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
--- 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
--- 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
--- 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