// PR c++/106230 // { dg-do compile { target c++11 } } struct A { A(); operator int(); }; template struct array { A elts[N]; A *begin(); A *end(); }; void fn() { for (int i : array<4>{}) ; }