[PATCH] D88345: [CUDA] Allow local `static const {__constant__, __device__}` variables.

Justin Lebar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 25 16:47:43 PDT 2020


jlebar added a comment.

wha... As you know, `const` doesn't mean anything, that can be const-casted away.  And then you'll be able to observe that this nominally-static variable is just a normal variable.

Since this doesn't make sense and contradicts their documentation, I'm tempted to say this should only apply to the nvidia headers.  Is that technically possible?  And then we file a bug against nvidia and/or ask Bryce?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88345/new/

https://reviews.llvm.org/D88345



More information about the cfe-commits mailing list