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

[REG 4.6.1 -> 4.6.2] Replacing "." operator with "->" does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • Qt Creator 4.6.2
    • Windows 10 1803 64 bit
      Ubuntu
      Creator built on Qt 5.10.1
      Project configured to use Qt 4.8.7 or Qt 5.6.1
      built-in code model or clang-based

    Description

      1. Open the attached project.
        It's a default Qt Console Application with an added line.
      2. In main.cpp, type a "." after the usage of "p":
        #include <QCoreApplication>
        
        int main(int argc, char *argv[])
        {
            QCoreApplication a(argc, argv);
        
            QCoreApplication *p;
            p   // type here
            return a.exec();
        }
        

        "p" is a pointer, so the "." should automatically be replaced with "->". This does not work anymore.

      In Creator 4.6.1, this used to work correctly. It will work again after switching the project configuration to any other kit.

      Found by Squish test tst_memberoperator.

      Attachments

        Issue Links

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

          Activity

            People

              buddenha Oswald Buddenhagen
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes