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: "chris dot fairles at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2008 20:39:19 -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 #3 from chris dot fairles at gmail dot com 2008-09-03 20:39 -------
Reduced testcase w/o the need for headers:
template<class T>
void f(T&& a, bool);
template<class T> void f(T&& a)
{
f(static_cast<T&&>(a), true);
}
int main()
{
int a;
f(a);
}
undefined reference to 'void f<int&>(int&&&, bool)'
(note: the mangled name is _Z1fIRiEvOT_b for what its worth)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37089