This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48578] Range-based for-loops do not compile when -nostdinc is given
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 12 Apr 2011 17:39:26 +0000
- Subject: [Bug c++/48578] Range-based for-loops do not compile when -nostdinc is given
- Auto-submitted: auto-generated
- References: <bug-48578-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48578
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-04-12 17:39:15 UTC ---
According to the current C++0x draft that loop should call begin(l) and end(l)
but there are no declarations of those functions in your testcase, with or
without -nostdinc
According to the C++0x FDIS your example would work, but that's not implemented
in G++ 4.6.0