This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48994] [4.7 regression] error for trivial use of range-based 'for'
- From: "zeratul976 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 13 May 2011 23:32:53 +0000
- Subject: [Bug c++/48994] [4.7 regression] error for trivial use of range-based 'for'
- Auto-submitted: auto-generated
- References: <bug-48994-4@http.gcc.gnu.org/bugzilla/>
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)
;
}