http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49356
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |froydnj at gcc dot gnu.org, | |jason at gcc dot gnu.org Resolution| |INVALID --- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-15 17:05:38 UTC --- The problem here is that t(f) is an rvalue, so it can't bind to the non-const T& parameter in the recursive call. Nathan has a patch in the works that should produce more helpful diagnostics for this sort of situation.