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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits