[PATCH] D52421: [Sema] Diagnose parameter names that shadow inherited field names

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 6 09:36:18 PST 2018

lebedev.ri added a comment.

And now i'm having concerns.

  struct Base {
      void* f;
  struct Inherit : Base {
      static void func(void* f) { // <- does 'f' *actually* shadow the 'f' in the 'Base'? You can't access that non-static member variable from static function.


More information about the cfe-commits mailing list