This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp] Diagnose #pragma omp threadprivate on automatic vars or on vars with incomplete type
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Richard Henderson <rth at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 2 Nov 2005 08:25:17 -0500
- Subject: Re: [gomp] Diagnose #pragma omp threadprivate on automatic vars or on vars with incomplete type
- References: <20051102082011.GO16034@devserv.devel.redhat.com>
On Wednesday 02 November 2005 03:20, Jakub Jelinek wrote:
> * c-parser.c (c_parser_omp_threadprivate): Error if V is automatic
> variable or has incomplete type.
> cp/
> * semantics.c (finish_omp_threadprivate): Error if V is automatic
> variable or has incomplete type.
> testsuite/
> * gcc.dg/gomp/tls-2.c: New test.
> * g++.dg/gomp/tls-2.C: New test.
>
OK.