yaxunl added inline comments.
================ Comment at: clang/test/CodeGenCUDA/lambda-reference-var.cu:61 + [=](){ + int &ref = global_device_var; + ref++; ---------------- tra wrote: > Do we have current Sema tests that verify that we we would not allow > accessing host vars here? currently clang does not diagnose access to host global variable in device functions. do we want to diagnose that? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D91088/new/ https://reviews.llvm.org/D91088 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits