http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51183
--- Comment #14 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-06 10:30:42 UTC --- I'm attaching what I already tested and was going to commit. If you like, please work on top of it and produce a combined new patch. Like, if you think another testcase is necessary or, if the assembly supports you, you believe non-const ref passing is actually useful. I'd like to resolve this issue today and move on. Thanks!