http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47721
Summary: [C++0x] Updated friendship rules? Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: paolo.carl...@oracle.com Hi, I'm told by two colleagues that in C++0x mode we should actually accept the below, apparently already accepted by other compilers as an extension. Are they right? template<typename W> class P { public: friend W; protected: P(const int& v); };