ABataev added a comment. It is against the standard, I assume. According to standard, `During the execution of an atomic region, multiple syntactic occurrences of x must designate the same storage location.`. In your case, this is not so. I assume it would be better to implement the diagnostic here that the code is not OpenMP compliant.
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D71225/new/ https://reviews.llvm.org/D71225 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits