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] Error if #pragma omp threadprivate used on static class variable


On Wed, Nov 02, 2005 at 09:19:20AM -0500, Jakub Jelinek wrote:
> I missed the "list of file-scope, namespace-scope, or static block-scope
> variables" hunk.  Class static vars certainly don't fall into this category.

That's ... bizzare.  I almost feel like allowing this as an
extension, but I don't think we're in the best place to do
that.  Better to just get this changed for OMP 3.0.

> 	* semantics.c (finish_omp_threadprivate): Error on class-scope
> 	variables.

Ok, but I think if you run the full testsuite you'll find that
I've used threadprivate class-scope variables in some of them.
You'll need to move them out of class scope.


r~


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