2 // Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5 // Wrong code because of the friend declaration
7 template <typename T> struct A
11 friend A<int> foo (const A<unsigned>&);
14 A<int> foo (const A<unsigned>& a)
22 return foo(A<unsigned>(0)).x;