[Bug fortran/82895] An internal routine used in a parallel section (OpenMP) does not get the values of thread-private variables

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 8 14:11:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82895

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The contained functions access the original variables, not the privatized ones,
therefore your testcase has unspecified behavior.  Don't do that.


More information about the Gcc-bugs mailing list