Compilation error (THREADPRIVATE in BLOCK DATA)
Takuya FURUTA
furuta.takuya@jaea.go.jp
Thu Feb 19 07:31:00 GMT 2015
To whom it may concern with,
Recently I have updated the gfortran to "GNU Fortran (tdm64-1) 4.9.2"
and compiled my program using it with OpenMP option. Then I got the
following error:
Error: !$OMP THREADPRIVATE statement is not allowed inside of BLOCK DATA
which did not appear in the former version of gfortran (probably 4.8).
In my program, THREADPRIVATE variables in named COMMON statement are
initialized in BLOCK DATA using DATA statement. According to the above
message, this is not allowed in gfortran 4.9.2.
Does this mean that THREADPRIVATE variables in named COMMON statement
can NOT be initialized using DATA statement because variables in named
COMMON statement can be initialized by DATA statement only in BLOCK DATA ?
It seems that my program can be compiled with former versions of
gfortran and other compiler such as ifort, and works fine.
I would be very happy if you could tell me what I should do. Is there
any work round such as a compiler option not to check this.
Best regards,
Takuya Furuta
More information about the Fortran
mailing list