lldb-eval icon indicating copy to clipboard operation
lldb-eval copied to clipboard

Incorrect member resolution for classes with multiple non-empty bases

Open werat opened this issue 3 years ago • 0 comments

struct Base1 {
  int x;
  int y;
};

struct Base2 : Base1 {
};

struct Base3 {
  int z;
};

struct Foo : Base2, Base3 {
};

Foo foo;

Evaluating foo.z produces wrong result, likely because there's a bug somewhere in ParserContext::GetMemberInfo().

werat avatar Sep 07 '22 17:09 werat