Issue 144555
Summary [lldb] wrong std::deque size
Labels new issue
Assignees
Reporter nd-work
    Happens with XCode 26 beta.

To reproduce:

- debug the program:

```
#include <deque>

int main() {
 std::deque<int> d;
  d.push_back(1);
  return 0; //break
}
```

- print `d` once the breakpoint is reached:

```
(lldb) frame var d
(std::deque<int>) d = size=0 {}
```

Seems to happen because `map_endcap` in `stddeque_SynthProvider.update` is zero, while `map_first`, `map_begin`, and `map_end` are not.

Works fine with /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1900.178.0) from XCode 16.3.
Doesn't work with /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 2000.60.0) from XCode 26 beta.

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to