http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56032
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-01-18 16:00:15 UTC --- (In reply to comment #3) > I added a new report because 50025 is about a compilation error, and with gcc > 4.7 the code compiles, but fails to work as expected, but probably there > issues > are closely related. The difference is not caused by GCC 4.7, it's because you used a const-reference and PR 50025 uses a non-const reference. If you change your code to use non-cosnt references you get a compilation error too. > Could you point me to which part of the draft required this behaviour? See the comments for PR 50025, there's a link to DR 1288