------- Comment #1 from burnus at gcc dot gnu dot org  2009-01-26 18:42 -------
Note: The standard does not allow this, see
http://www.openmp.org/mp-documents/spec30.pdf, page 94: Section "2.9.2
threadprivate Directive" has under "Restrictions":

"A variable can only appear in a threadprivate directive in the scope in which
it is declared. It must not be an element of a common block or appear in an 
EQUIVALENCE statement."

I don't see any fundamental problem with allowing it thus simply removing the
check should work - but I have not tested it.

I think one should not silently accept it; as there is no -fopenmp-std=legacy
option, I think the easiest would be to generate a warning such as:

  Warning: OpenMP extension: THREADPRIVATE for EQUIVALENCEd variable


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|OpenMP extension:           |OpenMP extension:
                   |                            |THREADPRIVATE for
                   |                            |EQUIVALENCEd symbols


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38979

Reply via email to