[Bug c++/47721] New: [C++0x] Updated friendship rules?
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Sun Feb 13 20:30:00 GMT 2011
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: unassigned@gcc.gnu.org
ReportedBy: paolo.carlini@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);
};
More information about the Gcc-bugs
mailing list