3 // Origin: Alexandre Tolmos <ktulu@free.fr>
5 // PR c++/11876: Friend of its own class diagnostics
11 friend class A<float>;
14 inline A() : _data(0) {}
16 inline A(const A<U>& r) : _data(r._data) {}
19 class B : public A<int>
23 inline B(const B& r) : A<int>(r) {}
26 class C : public A<float>
30 inline C(const B& r) : A<float>(r) {}
33 int main(int, char*[])