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

Weird behaviour in "Locals and Watchers" window with std::vector<bool>

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 2.5.0-beta
    • Qt Creator 2.2.1
    • Debugger
    • None
    • Ubuntu 11.10 64 bit

    Description

      "Locals and Watchers" window in Qt Creator displays wrong information about std::vector<bool> instances while debugging. For example when I initialize instance of vector<bool> to 50 trues, only first 32 items show true and rest show false. Also when I create instance of vector<bool> with 65 items, inspecting shows it has only 33 items. The instances of vector<bool> are actually correct, only reporting in "Locals and Watchers" window is broken. Here is minimal example which reproduces this bug:

      #include <vector>
      
      int main(void)
      {
      	std::vector<bool> v1(50, true);
      	std::vector<bool> v2(65);
      
      	return 0; // breakpoint here
      }
      

      Attachments

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

        Activity

          People

            hjk hjk
            pivo David Beer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes