Description
If an std::list uses std::scoped_allocator_adaptor as its second template argument, the debugger can't visualize the content of the vector. It shows "not accessible" instead.
The issue can be easily reproduced with the following test code:
std::list<int, std::scoped_allocator_adaptor<std::allocator<int>>> intList; intList.push_back(10);
when debugging the above intList can't be visualized.
The problem is that if the std::scoped_allocator_adaptor is used, the first pointer will contain a member variable from scoped_allocator_adaptor. The address parsing would be incorrect for std::list.
https://codereview.qt-project.org/c/qt-creator/qt-creator/+/265875
contains a fix for std::vector. However, std::list still has the issue.