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

Assign to local: Wrong substitution inside parentheses

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 2.8.0-rc
    • C/C++/Obj-C++ Support

    Description

      #include <QList>
      
      void foo()
      {
          QList<int> list;
          (*list.begin()); // trigger assign to local here
          (*QList::const_iterator localBegin = list.begin()); // result is substitution like shown here
          int localBegin = (*list.begin()); // but this would be correct
      }

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes