[Bug c++/49122] [C++0x] initializer_list is broken

potswa at mac dot com gcc-bugzilla@gcc.gnu.org
Fri Mar 8 07:57:00 GMT 2013


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

--- Comment #8 from David Krauss <potswa at mac dot com> 2013-03-08 07:57:03 UTC ---
Oops, I didn't read the original code closely enough. To be OK by the above
interpretation, the local initializer_list variable would need to be eliminated
from main() and the loop would be 

 for(int i: f())

Should I open a new bug?



More information about the Gcc-bugs mailing list