2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wno-vla" }
5 template<typename Callable>
9 Impl(Callable f) : func(f) { }
10 virtual void run() { func(); }
13 template<typename Callable>
16 Impl<Callable>(f).run();
19 extern "C" int printf(const char*, ...);
27 for(int c=0; c<2; c++){
28 printf("use me", fa[0][c]); // { dg-error "capture of variable-size type" }