[Lldb-commits] [lldb] [LLDB] Fix crash in TypeSystemClang::GetIndexofChildMemberWithName. (PR #117808)

via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 27 08:15:15 PST 2024


cmtice wrote:

Here's the test case I used:
$ cat main.cpp
  struct A {
    struct {
      int x = 1;
    };
    int y = 2;6
  } a;

  struct B {
    // Anonymous struct inherits another struct.
    struct : public A {
      int z = 3;
    };
    int w = 4;
    A a;
  } b;

  return 0; // Set a breakpoint here
}
$ clang++ -g -O0 main.cpp
$ lldb a.out

Break at 'main' and step to the return statement. Then
(lldb) frame var b.x
LLDB crashes, trying to pop the empty vector.


https://github.com/llvm/llvm-project/pull/117808


More information about the lldb-commits mailing list