https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62010
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The testcases look invalid to me. If you make j1 private, then it is uninitialized in the loop, so if the program doesn't crash, it is by pure luck. The other variables listed in private clause are not used in the simd loop at all, so it doesn't make any sense to list them there. So, just remove all private clauses and you should be fine.