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

[REG 6.10.0 Beta2 -> 6.10.0 Beta3] error: non-POD static

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • 6.10.0 Beta4, 6.11.0 FF
    • 6.10.0 Beta3
    • Core: Plugins
    • None
    • Clazy
    • Linux/Other display system
    • 6fdfbb516 (dev), 101094be3 (6.10)

      We were able to compile and use Qt 6.10.0 Beta2 in our CI. Compiling Qt 6.10.0 Beta3 still works but when we use it to compile our application we run into error: non-POD static. This is an example:

      ../source/test/qt/ui/proxy/test_UiLoader.cpp:14:1: error: non-POD static (StaticUiPluginProxyPluginInstance (anonymous namespace)::staticUiPluginProxyInstance) [-Wclazy-non-pod-global-static]
         14 | Q_IMPORT_PLUGIN(UiPluginProxy)
            | ^
      ../libs/dist/include/QtCore/qplugin.h:202:13: note: expanded from macro 'Q_IMPORT_PLUGIN'
        202 |             Static##PLUGIN##PluginInstance static##PLUGIN##Instance;                                       \
            |             ^
      <scratch space>:11:1: note: expanded from here
         11 | StaticUiPluginProxyPluginInstance
            | ^
      1 error generated.
      

        For Gerrit Dashboard: QTBUG-139615
        # Subject Branch Project Status CR V

            thiago Thiago Macieira
            larss Lars Schmertmann
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes