[Bug c++/37089] rvalue/lvalue reference collapsing not performed in error ouput thus printing "&&&"

chris dot fairles at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Sep 3 20:40:00 GMT 2008



------- 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



More information about the Gcc-bugs mailing list