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

Highlighting error with named union member initialization

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 3.2.0
    • Qt Creator 2.7.1, Qt Creator 2.7.2, Qt Creator 3.0.1
    • C/C++/Obj-C++ Support
    • None
    • Mac OS X 10.7.5, Qt Creator 2.7.1 (downloaded binary based on Qt 4.8.4), Qt 5.0.2, Clang 3.2.

    Description

      When initializing a union member by name, the highlight marks the line as wrong , even though it's valid code (see screenshot.) The tooltip for the error line says "expected token `;' got `u'".

      Attachments

        1. union.png
          28 kB
          Benjamin Lutz
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            erikv Erik Verbruggen
            maxlor Benjamin Lutz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes