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

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.3.2
    • Fix Version/s: None
    • Component/s: Shiboken
    • Labels:
      None
    • Platform/s:
      Linux/X11
    • Commits:
      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

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

            Activity

              People

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              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