jimingham wrote:

Unfortunately, this is legal C++:

```
class Foo {
public:
  int m_intvar = 10;
};

class Bar : Foo {
public:
  int Foo = 100;
};

int
main()
{
  Bar myBar;
  return myBar.Foo;
}

```

So the lookup by name of Foo wouldn't be unique here.

https://github.com/llvm/llvm-project/pull/118814
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to