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

qqmlanybinding_p.h:462:19: error: ‘int QtPrivate::RefCounted::ref’ is private within this context

    XMLWordPrintable

Details

    • Linux/X11

    Description

      agent:2024/03/22 06:26:20 build.go:404: In file included from /home/qt/work/qt/qtdeclarative_build/include/QtQml/6.8.0/QtQml/private/qqmlanybinding_p.h:1,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp:28:
      agent:2024/03/22 06:26:20 build.go:404: /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlanybinding_p.h: In member function ‘void QQmlAnyBinding::clear()’:
      agent:2024/03/22 06:26:20 build.go:404: /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlanybinding_p.h:462:19: error: ‘int QtPrivate::RefCounted::ref’ is private within this context
      agent:2024/03/22 06:26:20 build.go:404:   462 |             priv->ref--;
      agent:2024/03/22 06:26:20 build.go:404:       |                   ^~~
      agent:2024/03/22 06:26:20 build.go:404: In file included from /home/qt/work/install/include/QtCore/qproperty.h:14,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/install/include/QtCore/qchronotimer.h:12,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/install/include/QtCore/QtCore:61,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/qt/qtdeclarative_build/include/QtQmlBuiltins/QtQmlBuiltinsDepends:3,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/qt/qtdeclarative_build/include/QtQmlBuiltins/QtQmlBuiltins:3,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/qt/qtdeclarative_build/src/qml/CMakeFiles/Qml.dir/cmake_pch.hxx:5,
      agent:2024/03/22 06:26:20 build.go:404:                  from <command-line>:
      agent:2024/03/22 06:26:20 build.go:404: /home/qt/work/install/include/QtCore/qpropertyprivate.h:45:9: note: declared private here
      agent:2024/03/22 06:26:20 build.go:404:    45 |     int ref = 0;
      agent:2024/03/22 06:26:20 build.go:404:       |         ^~~
      agent:2024/03/22 06:26:20 build.go:404: In file included from /home/qt/work/qt/qtdeclarative_build/include/QtQml/6.8.0/QtQml/private/qqmlanybinding_p.h:1,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp:28:
      agent:2024/03/22 06:26:20 build.go:404: /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlanybinding_p.h:462:19: note: field ‘int QtPrivate::RefCounted::ref’ can be accessed via ‘int QtPrivate::RefCounted::refCount() const’
      agent:2024/03/22 06:26:20 build.go:404:   462 |             priv->ref--;
      agent:2024/03/22 06:26:20 build.go:404:       |                   ^~~
      agent:2024/03/22 06:26:20 build.go:404:       |                   refCount()
      agent:2024/03/22 06:26:20 build.go:404: /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlanybinding_p.h:463:24: error: ‘int QtPrivate::RefCounted::ref’ is private within this context
      agent:2024/03/22 06:26:20 build.go:404:   463 |             if (!priv->ref)
      agent:2024/03/22 06:26:20 build.go:404:       |                        ^~~
      agent:2024/03/22 06:26:20 build.go:404: In file included from /home/qt/work/install/include/QtCore/qproperty.h:14,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/install/include/QtCore/qchronotimer.h:12,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/install/include/QtCore/QtCore:61,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/qt/qtdeclarative_build/include/QtQmlBuiltins/QtQmlBuiltinsDepends:3,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/qt/qtdeclarative_build/include/QtQmlBuiltins/QtQmlBuiltins:3,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/qt/qtdeclarative_build/src/qml/CMakeFiles/Qml.dir/cmake_pch.hxx:5,
      agent:2024/03/22 06:26:20 build.go:404:                  from <command-line>:
      agent:2024/03/22 06:26:20 build.go:404: /home/qt/work/install/include/QtCore/qpropertyprivate.h:45:9: note: declared private here
      agent:2024/03/22 06:26:20 build.go:404:    45 |     int ref = 0;
      agent:2024/03/22 06:26:20 build.go:404:       |         ^~~
      agent:2024/03/22 06:26:20 build.go:404: In file included from /home/qt/work/qt/qtdeclarative_build/include/QtQml/6.8.0/QtQml/private/qqmlanybinding_p.h:1,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp:28:
      agent:2024/03/22 06:26:20 build.go:404: /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlanybinding_p.h:463:24: note: field ‘int QtPrivate::RefCounted::ref’ can be accessed via ‘int QtPrivate::RefCounted::refCount() const’
      agent:2024/03/22 06:26:20 build.go:404:   463 |             if (!priv->ref)
      agent:2024/03/22 06:26:20 build.go:404:       |                        ^~~
      agent:2024/03/22 06:26:20 build.go:404:       |                        refCount()
      agent:2024/03/22 06:26:20 build.go:404: /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp: In member function ‘bool QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&)’:
      agent:2024/03/22 06:26:20 build.go:404: /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp:1550:87: error: ‘int QtPrivate::RefCounted::ref’ is private within this context
      agent:2024/03/22 06:26:20 build.go:404:  1550 |         const auto bindingPrivateRefCount = QPropertyBindingPrivate::get(qmlBinding)->ref;
      agent:2024/03/22 06:26:20 build.go:404:       |                                                                                       ^~~
      agent:2024/03/22 06:26:20 build.go:404: In file included from /home/qt/work/install/include/QtCore/qproperty.h:14,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/install/include/QtCore/qchronotimer.h:12,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/install/include/QtCore/QtCore:61,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/qt/qtdeclarative_build/include/QtQmlBuiltins/QtQmlBuiltinsDepends:3,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/qt/qtdeclarative_build/include/QtQmlBuiltins/QtQmlBuiltins:3,
      agent:2024/03/22 06:26:20 build.go:404:                  from /home/qt/work/qt/qtdeclarative_build/src/qml/CMakeFiles/Qml.dir/cmake_pch.hxx:5,
      agent:2024/03/22 06:26:20 build.go:404:                  from <command-line>:
      agent:2024/03/22 06:26:20 build.go:404: /home/qt/work/install/include/QtCore/qpropertyprivate.h:45:9: note: declared private here
      agent:2024/03/22 06:26:20 build.go:404:    45 |     int ref = 0;
      agent:2024/03/22 06:26:20 build.go:404:       |         ^~~
      agent:2024/03/22 06:26:20 build.go:404: /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp:1550:87: note: field ‘int QtPrivate::RefCounted::ref’ can be accessed via ‘int QtPrivate::RefCounted::refCount() const’
       1550 |         const auto bindingPrivateRefCount = QPropertyBindingPrivate::get(qmlBinding)->ref;
            |                                                                                       ^~~
            |                                                                                       refCount()
      Sccache command failed, re-try calling build tool directly
      In file included from /home/qt/work/qt/qtdeclarative_build/include/QtQml/6.8.0/QtQml/private/qqmlanybinding_p.h:1,
                       from /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp:28:
      /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlanybinding_p.h: In member function ‘void QQmlAnyBinding::clear()’:
      /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlanybinding_p.h:462:19: error: ‘int QtPrivate::RefCounted::ref’ is private within this context
        462 |             priv->ref--;
            |                   ^~~
      In file included from /home/qt/work/install/include/QtCore/qproperty.h:14,
                       from /home/qt/work/install/include/QtCore/qchronotimer.h:12,
                       from /home/qt/work/install/include/QtCore/QtCore:61,
                       from /home/qt/work/qt/qtdeclarative_build/include/QtQmlBuiltins/QtQmlBuiltinsDepends:3,
                       from /home/qt/work/qt/qtdeclarative_build/include/QtQmlBuiltins/QtQmlBuiltins:3,
                       from /home/qt/work/qt/qtdeclarative_build/src/qml/CMakeFiles/Qml.dir/cmake_pch.hxx:5,
                       from <command-line>:
      /home/qt/work/install/include/QtCore/qpropertyprivate.h:45:9: note: declared private here
         45 |     int ref = 0;
            |         ^~~
      In file included from /home/qt/work/qt/qtdeclarative_build/include/QtQml/6.8.0/QtQml/private/qqmlanybinding_p.h:1,
                       from /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp:28:
      /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlanybinding_p.h:462:19: note: field ‘int QtPrivate::RefCounted::ref’ can be accessed via ‘int QtPrivate::RefCounted::refCount() const’
        462 |             priv->ref--;
            |                   ^~~
            |                   refCount()
      /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlanybinding_p.h:463:24: error: ‘int QtPrivate::RefCounted::ref’ is private within this context
        463 |             if (!priv->ref)
            |                        ^~~
      In file included from /home/qt/work/install/include/QtCore/qproperty.h:14,
                       from /home/qt/work/install/include/QtCore/qchronotimer.h:12,
                       from /home/qt/work/install/include/QtCore/QtCore:61,
                       from /home/qt/work/qt/qtdeclarative_build/include/QtQmlBuiltins/QtQmlBuiltinsDepends:3,
                       from /home/qt/work/qt/qtdeclarative_build/include/QtQmlBuiltins/QtQmlBuiltins:3,
                       from /home/qt/work/qt/qtdeclarative_build/src/qml/CMakeFiles/Qml.dir/cmake_pch.hxx:5,
                       from <command-line>:
      /home/qt/work/install/include/QtCore/qpropertyprivate.h:45:9: note: declared private here
         45 |     int ref = 0;
            |         ^~~
      In file included from /home/qt/work/qt/qtdeclarative_build/include/QtQml/6.8.0/QtQml/private/qqmlanybinding_p.h:1,
                       from /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp:28:
      /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlanybinding_p.h:463:24: note: field ‘int QtPrivate::RefCounted::ref’ can be accessed via ‘int QtPrivate::RefCounted::refCount() const’
        463 |             if (!priv->ref)
            |                        ^~~
            |                        refCount()
      /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp: In member function ‘bool QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&)’:
      /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp:1550:87: error: ‘int QtPrivate::RefCounted::ref’ is private within this context
       1550 |         const auto bindingPrivateRefCount = QPropertyBindingPrivate::get(qmlBinding)->ref;
            |                                                                                       ^~~
      In file included from /home/qt/work/install/include/QtCore/qproperty.h:14,
                       from /home/qt/work/install/include/QtCore/qchronotimer.h:12,
                       from /home/qt/work/install/include/QtCore/QtCore:61,
                       from /home/qt/work/qt/qtdeclarative_build/include/QtQmlBuiltins/QtQmlBuiltinsDepends:3,
                       from /home/qt/work/qt/qtdeclarative_build/include/QtQmlBuiltins/QtQmlBuiltins:3,
                       from /home/qt/work/qt/qtdeclarative_build/src/qml/CMakeFiles/Qml.dir/cmake_pch.hxx:5,
                       from <command-line>:
      /home/qt/work/install/include/QtCore/qpropertyprivate.h:45:9: note: declared private here
         45 |     int ref = 0;
            |         ^~~
      /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp:1550:87: note: field ‘int QtPrivate::RefCounted::ref’ can be accessed via ‘int QtPrivate::RefCounted::refCount() const’
       1550 |         const auto bindingPrivateRefCount = QPropertyBindingPrivate::get(qmlBinding)->ref;
            |                                                                                       ^~~
            |                                                                                       refCount()
      

      Build log: https://testresults.qt.io/logs/qt/qtdeclarative/a8da69160a656fea1509cfa903371ec4a8d191d7/LinuxopenSUSE_15_5x86_64LinuxopenSUSE_15_5x86_64GCCqtci-linux-openSUSE-15.5-x86_64-52-1002b8Sccache_UseAddressSanitizer_UseConfigure_WarningsAreErrors/053891e51fdc6d82b72cd65fe5f44b85a5ded2de/build_1711088723/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qtdeclarative/tasks/1711088626

      Tested changes (refs/builds/qtci/dev/1711088569):
      https://codereview.qt-project.org/c/qt/qtdeclarative/+/550329/2 Update dependencies on 'dev' in qt/qtdeclarative

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes