[clang] [CUDA] Treat function-scope statics in device code as device variables (PR #222985)

Pedro Oliveira via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 30 11:50:50 PDT 2026


pjmc-oliveira wrote:

@yxsamliu Added the default construction requirement to the recursive check + tests.

The assert in CGDecl still only checks the outer most constructor (so it's laxer than the actual requirement), do you want me to duplicate the recursive check there too?

Also, this still accepts `C() : t() {}` which nvcc rejects, but the initializer doesn't run anything.

https://github.com/llvm/llvm-project/pull/222985


More information about the cfe-commits mailing list