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

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 2 02:23:59 PST 2024


================
@@ -0,0 +1,19 @@
+int main(int argc, char** argv) {
+  struct A {
+    struct {
+      int x = 1;
+    };
+    int y = 2;
+  } a;
+
+  struct B {
+    // Anonymous struct inherits another struct.
+    struct : public A {
+      int z = 3;
+    };
+    int w = 4;
+    A a;
+  } b;
----------------
labath wrote:

Can we avoid running the binary by making this a global variable (and then using `target variable` in the test case)?

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


More information about the lldb-commits mailing list