public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/30326] New: shared clauses for const variables are illigal
@ 2006-12-29 1:53 kuba at et dot pl
2006-12-29 1:57 ` [Bug c/30326] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: kuba at et dot pl @ 2006-12-29 1:53 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/30326] shared clauses for const variables are illigal
2006-12-29 1:53 [Bug c/30326] New: shared clauses for const variables are illigal kuba at et dot pl
@ 2006-12-29 1:57 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-29 1:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-12-29 01:57 -------
*** This bug has been marked as a duplicate of 30323 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30326
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-29 1:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-29 1:53 [Bug c/30326] New: shared clauses for const variables are illigal kuba at et dot pl
2006-12-29 1:57 ` [Bug c/30326] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).