[PATCH] D26735: [OpenCL] Disable && (address of label) GNU extension for OpenCL

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 16 13:35:37 PST 2016


rsmith added a comment.

Please don't ban things just because you can. If there's some reason why this doesn't make sense in OpenCL, this may be fine, but generally you shouldn't be making this language mode deviate from clang's normal behaviour regarding extensions.

(It would be great if we had a flag to turn off gnu extensions other than -pedantic-errors, like we have for MS extensions, but that's mostly orthogonal to OpenCL.)


https://reviews.llvm.org/D26735





More information about the cfe-commits mailing list