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?