Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-97762

Assert when using a custom QObject QList<MyObject*> with Clang 12

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: 6.2.0
    • Fix Version/s: None
    • Component/s: Core: Object Model
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      Compiling the same attached project with MSVC and clang-cl results in different outcomes. The MSVC compiled version works and prints the name of the QObject based device. The clang-cl version asserts in qRegisterNormalizedMetaType  with:

      qRegisterNormalizedMetaType was called with a not normalized type name, please call qRegisterMetaType instead.
      

      Tested with

      • Qt 6.2.0 MSVC
      • Windows 10 x64
      • Visual Studio 2019 16.10
      • Clang-cl 12.0.0

      We are able to replicate the issue on multiple development devices. Please see the attached project that uses a list of Device pointer in a QList.

        Attachments

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

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            kelteseth Elias Steurer
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes