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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.2.0
    • Core: Object Model
    • None
    • 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

            thiago Thiago Macieira
            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