This is the mail archive of the gcc-help@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: member class


Dima Sorkin writes:
 > Hi.
 >  It _seems_ that g++ -pedantic -Wall  (any version) allows
 > the nested member classes to access the private types of
 > an enclosing class.
 > 
 > Should it be this way? It is contrary to
 > B.Stroustrup "The C++ prog lang" C.11.3

It's a bit more complicated than that.  Before you post a bug, have a
look at 11.8, Nested Classes, in ISO/IEC 14882, 
Programming languages: C++.

Andrew.


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