// PR c++/48994 // { dg-do compile { target c++11 } } template struct myvec { T* begin() const; T* end() const; }; void f(const myvec& v) { for (int i : v) ; }