1 // PR c++/48994
2 
3 // { dg-do compile { target c++11 } }
4 
5 template <typename T>
6 struct myvec
7 {
8     T* begin() const;
9     T* end() const;
10 };
11 
f(const myvec<int> & v)12 void f(const myvec<int>& v)
13 {
14     for (int i : v)
15         ;
16 }
17