%\pagebreak \begin{fortranspecific}[4ex] \section{Fortran Private Loop Iteration Variables} \label{sec:fort_loopvar} \index{loop variables, Fortran} In general loop iteration variables will be private, when used in the \plc{do-loop} of a \kcode{do} and \kcode{parallel do} construct or in sequential loops in a \kcode{parallel} construct (see the \docref{Loop Construct} section and the \docref{Data-sharing Attribute Rules} section of the OpenMP 4.0 specification). In the following example of a sequential loop in a \kcode{parallel} construct the loop iteration variable \ucode{I} will be private. \ffreenexample{fort_loopvar}{1} In exceptional cases, loop iteration variables can be made shared, as in the following example: \ffreenexample{fort_loopvar}{2} Note however that the use of shared loop iteration variables can easily lead to race conditions. \end{fortranspecific}