This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37089] rvalue/lvalue reference collapsing not performed in error ouput thus printing "&&&"
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Aug 2008 22:55:47 -0000
- Subject: [Bug c++/37089] rvalue/lvalue reference collapsing not performed in error ouput thus printing "&&&"
- References: <bug-37089-14909@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from paolo dot carlini at oracle dot com 2008-08-16 22:55 -------
The below does compile (with -std=c++0x of course) and indeed the triple
ampersand is there.
////////////
#include <utility>
template <class T>
void f(T&& a, bool);
template<class T>
void f(T&& a){
f(std::forward<T>(a), true);
}
int main()
{
int a;
f(a);
}
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-08-16 22:55:47
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37089