This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp] Error if #pragma omp threadprivate used on static class variable
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Diego Novillo <dnovillo at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 2 Nov 2005 09:45:32 -0800
- Subject: Re: [gomp] Error if #pragma omp threadprivate used on static class variable
- References: <20051102141919.GS16034@devserv.devel.redhat.com>
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~