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

QBasicAtomicInteger<quintptr> isn't supported

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.15.5, 5.15.10
    • Core: Other
    • None
    • Arch Linux
      gcc 11.2.0
      clang 13.0.1
      AMD Ryzen 9 5950X

    Description

      In file included from ../../include/QtCore/qglobal.h:1,
                       from /home/rutledge/dev/qt5/qtbase/src/corelib/thread/qsemaphore.h:43:
      ../../include/QtCore/../../../../qt5/qtbase/src/corelib/thread/qbasicatomic.h: In instantiation of ‘class QBasicAtomicInteger<long long unsigned int>’:
      /home/rutledge/dev/qt5/qtbase/src/corelib/thread/qsemaphore.h:70:39:   required from here
      ../../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qglobal.h:121:63: error: static assertion failed: template parameter is an integral of a size not supported on this platform
        121 | #  define Q_STATIC_ASSERT_X(Condition, Message) static_assert(bool(Condition), Message)
            |                                                               ^~~~~~~~~~~~~~~
      ../../include/QtCore/../../../../qt5/qtbase/src/corelib/thread/qbasicatomic.h:97:5: note: in expansion of macro ‘Q_STATIC_ASSERT_X’
         97 |     Q_STATIC_ASSERT_X(QAtomicOpsSupport<sizeof(T)>::IsSupported, "template parameter is an integral of a size not supported on this platform");
            |     ^~~~~~~~~~~~~~~~~
      ../../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qglobal.h:121:63: note: ‘false’ evaluates to false
        121 | #  define Q_STATIC_ASSERT_X(Condition, Message) static_assert(bool(Condition), Message)
            |                                                               ^~~~~~~~~~~~~~~
      ../../include/QtCore/../../../../qt5/qtbase/src/corelib/thread/qbasicatomic.h:97:5: note: in expansion of macro ‘Q_STATIC_ASSERT_X’
         97 |     Q_STATIC_ASSERT_X(QAtomicOpsSupport<sizeof(T)>::IsSupported, "template parameter is an integral of a size not supported on this platform");
            |     ^~~~~~~~~~~~~~~~~
      

      Attachments

        Issue Links

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

          Activity

            People

              villevoutilainen_qt Ville Voutilainen
              srutledg Shawn Rutledge
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes