yaxunl added a comment. In D102237#2767538 <https://reviews.llvm.org/D102237#2767538>, @tra wrote:
> Here's a slightly simpler reproducer: https://godbolt.org/z/rW6P9e37s I have a fix for this: https://reviews.llvm.org/D102801 It seems the issue was due to clang emits the implicit constant variable `aw<ar>::c` but it is invalid to be emitted on device side since it is initialized with a host function pointer. The fix is not to force emit implicit constant variables in device compilation. This basically limits our previous fix to explicit device variables. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D102237/new/ https://reviews.llvm.org/D102237 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits