This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]