[Bug c++/48578] Range-based for-loops do not compile when -nostdinc is given

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 12 17:39:00 GMT 2011


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



More information about the Gcc-bugs mailing list