[PATCH] D79237: [CUDA][HIP] Fix constexpr variables for C++17
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 15 14:42:15 PDT 2020
yaxunl marked 2 inline comments as done.
yaxunl added inline comments.
================
Comment at: clang/test/SemaCUDA/constexpr-variables.cu:30-31
+ static constexpr int c = sizeof(a);
+ a[0] = &b;
+ a[1] = &c;
+ foo(a);
----------------
tra wrote:
> Can we verify the diags for bad cases, too?
By bad cases you mean the constexpr var is not compile time constant?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79237/new/
https://reviews.llvm.org/D79237
More information about the cfe-commits
mailing list