https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106981
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Yes, this is certainly not valid OpenMP, if in the syntax x or expr or r appears multiple times, then each occurence needs to be the exact same set of tokens and due to the "During the execution of an atomic region, multiple syntactic occurrences of {x,expr,r} must designate the same storage location." restrictions must be the same thing at runtime too.