This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/48994] [4.7 regression] error for trivial use of range-based 'for'


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48994

--- Comment #1 from Nathan Ridge <zeratul976 at hotmail dot com> 2011-05-13 23:19:32 UTC ---
Further reduced to:

template <typename T>
struct myvec
{
    T* begin() const;
    T* end() const;
};

void f(const myvec<int>& v)
{
    for (int i : v)
        ;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]