This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
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.