gfortran openmp: lastprivate variable is private in outer context

Tobias Burnus burnus@net-b.de
Mon Nov 12 22:37:00 GMT 2007


Hi,

Liaskovitis, Vasileios wrote:
> I have an issue compiling the following fortran openmp code using gcc4.3
> snapshot 20071910:
> [...]
> gfortran -O2 -fopenmp foo.c -c -o foo.o
> fortran2.f:11: error: lastprivate variable "i2" is private in outer
> context
> fortran2.f:11: error: lastprivate variable "i1" is private in outer
> context
>
> I believe this code is compliant with the OPENMP 2.5 spec
The code is invalid. See:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33904

Tobias



More information about the Fortran mailing list