[PATCH] D25129: [CUDA] Disallow __constant__ local variables.

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 30 14:51:22 PDT 2016

tra accepted this revision.
tra added a comment.
This revision is now accepted and ready to land.


> DiagnosticSemaKinds.td:6727
>  def err_cuda_extern_shared : Error<"__shared__ variable %0 cannot be 'extern'">;
> +def err_cuda_nonglobal_constant : Error<"__constant__ variables must be global">;

Nit: Technically they are allowed in namespace scope.


More information about the cfe-commits mailing list