Open dwblaikie opened 11 years ago
statics as well: https://godbolt.org/z/jL0ony
This could/should also include shadowed member functions as well as member variables. (with a possible suggestion that the member function be marked virtual in the base and, in C++11, override in the derived class)
Extended Description
struct base { int i; }; struct derived: base { int i; };
We should see about warning on derived's 'i' under a subgroup of -Wshadow (possibly -Wshadow-member - suggestions welcome).