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

If statement with initializer falsely marked as error (C++ editor)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 8.0.2, Qt Creator 9.0.0
    • C/C++/Obj-C++ Support
    • None
    • Ubuntu 20.04 (since QtCreator 8.0)
      MacOS Monterey (since forever)
    • All

    Description

      This was already happening on MacOS but since version 9.0.0 it started to happen on Linux as well. When I do an if statement with initializer it is falsely marked as error in the editor.

      The code compiles and nothing happens, but it's quite annoying that this wasn't happening before and that it gets mixed with real errors:

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            francescmm Francesc Martínez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes