This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49356] [C++0x] decltype fails with recursive template function
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Jun 2011 17:06:25 +0000
- Subject: [Bug c++/49356] [C++0x] decltype fails with recursive template function
- Auto-submitted: auto-generated
- References: <bug-49356-4@http.gcc.gnu.org/bugzilla/>
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.