This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gomp] Fix sharing-1.c and sharing-1.C


On Tue, Oct 18, 2005 at 01:13:04PM -0400, Diego Novillo wrote:
> For default(none)?  How can that be?  I can understand that for shared, but 
> not for default(none).  Where am I misreading?

The fact that const implies a pre-determined sharing attribute,
and the fact that it's illegal (middle of page 64) to specify
variables with pre-determined sharing in data sharing clauses.

So in fact the user *cannot* write

   const int c = 0;
   #pragma omp parallel shared(c)


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]