[Bug c++/49356] [C++0x] decltype fails with recursive template function
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 15 17:06:00 GMT 2011
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.
More information about the Gcc-bugs
mailing list