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