2 // { dg-do compile { target c++1y } }
4 template<typename Callable>
8 Impl(Callable f) : func(f) { }
9 virtual void run() { func(); }
12 template<typename Callable>
15 Impl<Callable>(f).run();
18 extern "C" int printf(const char*, ...);
22 float fa[2][y]; // { dg-error "array of array of runtime bound" }
26 for(int c=0; c<2; c++){
27 printf("use me", fa[0][c]); // { dg-error "capture of variable-size type" }