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.