Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-18536

std::map and std::unordered_map are displayed as inaccessible

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.9.0-beta2
    • Qt Creator 4.3.1, Qt Creator 4.4.0-beta1, Qt Creator 4.6.0
    • Debugger
    • None
    • * MacOS Sierra 10.12.5
       * lldb --version
      lldb-370.0.42
       Swift-3.1
       * Xcode: 8.3.3
    • 7236e340a968be964e67ced3f29eadf76787fdcf

    Description

      The debugger does not display std::map and std::unordered_map when you expand them. At first it displays how many items, but once you click the arrow to expand, it becomes <not accessible>. QMap works okay. And std::string and std::vector are also showing correctly.

      This is the debugger view:

      Code:

          std::map<std::string, float> testNotDisplaying;
          testNotDisplaying["bla"] = 3.0;
          testNotDisplaying["brol"] = 7.20;
      
          std::unordered_map<std::string, float> testNotDisplaying2;
          testNotDisplaying2["bla"] = 3.0;
          testNotDisplaying2["brol"] = 7.20;
      
          QMap<std::string, float> testDisplaysOk;
          testDisplaysOk["bla"] = 3.0;
          testDisplaysOk["brol"] = 7.20;
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            tomdeblauwe Tom Deblauwe
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes