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

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 28 02:39:05 PST 2024


Michael137 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.

Thanks! Agree with Pavel, lets turn this into a test-case as part of this PR.

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


More information about the lldb-commits mailing list