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

Hangs at 100% cpu when opening file with iterator operator->

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 3.6.0-rc1
    • Qt Creator 3.5.0
    • C/C++/Obj-C++ Support
    • None

    Description

      e.g.:
      "it->first" hangs
      "(*it).first" works

      example snippit:
      _____
      std::map<std::string, std::string>::const_iterator it = mSBMLReference.begin();
      std::map<std::string, std::string>::const_iterator end = mSBMLReference.end();

      for (; it != end; ++it)

      { Attributes.setValue(0, it->first); Attributes.setValue(1, it->second); saveElement("SBMLMap", Attributes); }

      ______

      Changing to "(*it).first" works (i.e., I can close the file and quit qtcreator without having to "kill 9 <pid>"). I believe the ">" form is defined/accepted in the C++ standard, for iterators.

      I found this issue in my other source files, using other C++ containers (multimap, user-defined, . . .)

      Attachments

        Activity

          People

            kosjar Nikolai Kosjar
            qtk Brian Klahn
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: