1 2 3 4 5 6 7 8 9 10 11 12
class A { public: A (const A& ccref); friend A const re (const A& v1); // ERROR - }; A // const re (const A& ref) { // ERROR - mismatched decls return A (ref); }