Issue 128387
Summary Assertion failure in LLDB when evaluating an _expression_ with 'std::deque'
Labels lldb
Assignees
Reporter igorkudrin
    Steps to reproduce:
```
> cat test.cpp
#include <deque>

int main(int argc, char **argv) {
  std::deque<int> a = {3, 1, 2};
  return 0; // Set break point at this line.
}
> clang++ test.cpp -stdlib=libc++ -g -o test.out
> lldb
(lldb) settings set target.import-std-module true
(lldb) file test.out
(lldb) br set -p "// Set break"
(lldb) run
(lldb) expr -- std::deque<int>({1,2,3}).front()
lldb: .../lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.cpp:258: virtual anonymous}::CompleteTagDeclsScope::~CompleteTagDeclsScope(): Assertion `to_context_md->getOrigin(decl).ctx == m_src_ctx' failed.
....
```

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

Reply via email to