Anastasia added a comment. I think we should use `-fpermissive` rather than adding similar flag to Clang. At the end we might end up with other cases where we need similar mechanism it doesn't make sense to add a flag for each case.
Also I am not sure that what you are doing here is really enabling OpenCL C compatibility mode that would imply to me that `restrict` is expected to behave in C++ mode as it was in C but is it really the case? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D68388/new/ https://reviews.llvm.org/D68388 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits