[Bug c++/60829] Illegal access to private base of public base granted.

2014-04-11 Thread arm.nahm at gmx dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60829 --- Comment #1 from arm.nahm at gmx dot de --- First reported on StackOverflow: http://stackoverflow.com/questions/23024091/multiple-inheritance-makes-private-member-accessible

[Bug c++/60829] New: Illegal access to private base of public base granted.

2014-04-11 Thread arm.nahm at gmx dot de
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