1 // PR c++/60250 2 // { dg-do compile { target c++1y } } 3 foo()4 template<typename> void foo() 5 { 6 typedef int T[ ([](){ return 1; }()) ]; // { dg-error "runtime bound" } 7 } 8