[Bug c++/37089] rvalue/lvalue reference collapsing not performed in error ouput thus printing "&&&"
paolo dot carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Sat Aug 16 22:57:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list