public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60829] New: Illegal access to private base of public base granted.
@ 2014-04-12  0:25 arm.nahm at gmx dot de
  2014-04-12  0:27 ` [Bug c++/60829] " arm.nahm at gmx dot de
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: arm.nahm at gmx dot de @ 2014-04-12  0:25 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60829

            Bug ID: 60829
           Summary: Illegal access to private base of public base granted.
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: arm.nahm at gmx dot de

struct A{};
class B: A {};
struct C: A {};
struct D: B, C {
    D() { B::a = 0; }
};

The above code compiles in g++, even though the standard does not allow D
access to any member of the private base class A of public base class B.


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

end of thread, other threads:[~2014-06-12 13:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-12  0:25 [Bug c++/60829] New: Illegal access to private base of public base granted arm.nahm at gmx dot de
2014-04-12  0:27 ` [Bug c++/60829] " arm.nahm at gmx dot de
2014-04-12  6:16 ` glisse at gcc dot gnu.org
2014-04-12  6:35 ` trippels at gcc dot gnu.org
2014-04-14 14:56 ` trippels at gcc dot gnu.org
2014-06-12 13:53 ` rguenth at gcc dot gnu.org

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).