public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gdr at integrable-solutions dot net" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/12673] Possible accept-illegal in access control Date: Sat, 18 Oct 2003 14:58:00 -0000 [thread overview] Message-ID: <20031018144843.12895.qmail@sources.redhat.com> (raw) In-Reply-To: <20031018143108.12673.wwieser@gmx.de> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12673 ------- Additional Comments From gdr at integrable-solutions dot net 2003-10-18 14:48 ------- Subject: Re: New: Possible accept-illegal in access control "wwieser at gmx dot de" <gcc-bugzilla@gcc.gnu.org> writes: | I admit that I do not know the C++ standard well enough to be able | to tell which behavior is the correct one. Just cancel my report in | case GCC's current behavior is correct. | | ----------<snip>----------- | class A | { | private: | int x; | public: | struct B | { | A *a; | void foo() | { a->x=1; } // Hmm: x private member of A This is not a bug in the compiler. The standard has been changed and C++03 says that nested classes are automatically given friendship by the enclosing class. A clear confusion, but nevertheless a standard confusion. The bug can be closed as INVALID. -- Gaby
next prev parent reply other threads:[~2003-10-18 14:48 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-10-18 14:48 [Bug c++/12673] New: " wwieser at gmx dot de 2003-10-18 14:58 ` gdr at integrable-solutions dot net [this message] 2003-10-18 15:46 ` [Bug c++/12673] " pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20031018144843.12895.qmail@sources.redhat.com \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).