Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2071

Reg->6.3.X Compilation error with shared pointers (works with 6.2.2.1, doesn't work with 6.3.2)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 6.3.2
    • Shiboken
    • None
    • Linux/X11
    • 1e4cbb0b11 (pyside/pyside-setup/dev) 1e4cbb0b11 (pyside/tqtc-pyside-setup/dev) ac98ec361a (pyside/pyside-setup/6.3) ac98ec361a (pyside/tqtc-pyside-setup/6.3) 1e4cbb0b11 (pyside/tqtc-pyside-setup/tqtc/dev) 1e4cbb0b11 (pyside/pyside-setup/6.4)

    Description

      gcc version is: gcc (Debian 10.2.1-6) 10.2.1 20210110

      I get this compilation error in a generated file from shiboken:

      build/linux_x86_64_nonopt/nexxT/src/cnexxT-shiboken/cnexxT/qsharedpointer_datasample_wrapper.cpp: In function ‘PyObject* Sbk_QSharedPointerFunc_data(PyObject*)’:
      build/linux_x86_64_nonopt/nexxT/src/cnexxT-shiboken/cnexxT/qsharedpointer_datasample_wrapper.cpp:57:126: error: invalid conversion from ‘const nexxT::DataSample*’ to ‘nexxT::DataSample*’ [-fpermissive]
      57 | aSample * cppResult = const_cast<const ::QSharedPointer<const nexxT::DataSample > *>(cppSelf)->data();

      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
       
      const nexxT::DataSample*

      Attached are the two versions of qsharedpointer_datasample_wrapper.cpp where the version generated by shiboken 6.2.2.1 compiles and the version generated by shiboken 6.3.2 doesn't compile.

      Attachments

        Issue Links

          For Gerrit Dashboard: PYSIDE-2071
          # Subject Branch Project Status CR V

          Activity

            People

              kleint Friedemann Kleint
              bdev a dev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes