public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* member class
@ 2007-03-26 10:57 Dima Sorkin
  2007-03-26 11:42 ` Andrew Haley
  0 siblings, 1 reply; 2+ messages in thread
From: Dima Sorkin @ 2007-03-26 10:57 UTC (permalink / raw)
  To: gcc-help

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

Regards,
 Dima.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: member class
  2007-03-26 10:57 member class Dima Sorkin
@ 2007-03-26 11:42 ` Andrew Haley
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Haley @ 2007-03-26 11:42 UTC (permalink / raw)
  To: Dima Sorkin; +Cc: gcc-help

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-26 10:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-26 10:57 member class Dima Sorkin
2007-03-26 11:42 ` Andrew Haley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).