Sun Studio 12: OpenMP API User's Guide

5.2 Scoping Rules

Under automatic scoping, the compiler applies the following rules to determine the scope of a variable in a parallel region.

These rules do not apply to variables scoped implicitly by the OpenMP specification, such as loop index variables of worksharing DO or FOR loops.

5.2.1 Scoping Rules For Scalar Variables

5.2.2 Scoping Rules for Arrays