[PATCH] D102237: [CUDA][HIP] Fix non-ODR-use of static device variable
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 18 13:56:57 PDT 2021
tra added a comment.
Sam, this patch has apparently triggered some unwanted side effects. I'm still reducing the failures to something that could be used for debugging, but the rough symptoms are:
We now end up emitting the code for the host-only static member functions of instantiated class templates during device-side compilation.
Clang now complains about not allowed nontrivial static initializers for some variables in class templates.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102237/new/
https://reviews.llvm.org/D102237
More information about the cfe-commits
mailing list