Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
6.3.2
-
None
-
-
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
- relates to
-
PYSIDE-1016 const& shared pointers arguments generate broken code
- Closed
For Gerrit Dashboard: PYSIDE-2071 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
436490,4 | shiboken6: Fix smart pointers of type <const Pointee> | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
436731,2 | shiboken6: Fix smart pointers of type <const Pointee> | 6.3 | pyside/pyside-setup | Status: MERGED | +2 | 0 |