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