Struct data member is hidden by a local variable.

Vulnerability and risk

When local variables hide members of containing structures, those members become accessible only through 'this' link. This behaviour is most likely not intended.

Example 1

  struct Zoo {
      private int bears;
      void KillBears () {
          bool bears = false;  // defect - local variable hides a struct member