[PATCH] D15858: Warn undeclared identifiers in CUDA kernel calls

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 14 14:51:21 PST 2016


rsmith accepted this revision.
rsmith added a reviewer: rsmith.
rsmith added a comment.

LGTM, thanks!


================
Comment at: test/SemaCUDA/cxx11-kernel-call.cu:8
@@ +7,3 @@
+template<int ...Dimensions> void k1Wrapper() {
+  void (*f)() = [] { k1<<<Dimensions, Dimensions>>>(); }; // expected-error {{initializer contains unexpanded parameter pack 'Dimensions'}}
+}
----------------
Perhaps also add another test:

  void (*g[])() = { [] { k1<<<Dimensions, Dimensions>>>(); } ... }; // ok


http://reviews.llvm.org/D15858





More information about the cfe-commits mailing list