This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc does not allow a private member function to be a friend ofanother class


Denner, Brett wrote:
In Stroustrup's "The C++ Programming Language," section 11.5, the
following example is given:

This is documented in the gcc-3.4 release notes. See
http://gcc.gnu.org/gcc-3.4/changes.html
scroll down to the C++ section, and then scroll down to the 15th bullet. There is also a pointer to a defect report that makes it clear that your testcase is not valid ISO C++.


You probably want to read the rest of the C++ section in the gcc release notes also. Lots of useful info here.

There is an option -fno-access-control that will make this work, but you are probably better off fixing your code.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]