// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s #include "Inputs/cuda.h" __global__ void k1() {} template void k1Wrapper() { void (*f)() = [] { k1<<>>(); }; // expected-error {{initializer contains unexpanded parameter pack 'Dimensions'}} void (*g[])() = { [] { k1<<>>(); } ... }; // ok }