From marc.dirven at intraffic.nl Wed Jun 7 07:59:07 2023 From: marc.dirven at intraffic.nl (Dirven M (Marc)) Date: Wed Jun 7 08:20:42 2023 Subject: [xsd-users] Deprecated user defined copy constructor Message-ID: Hi, Recently, we upgraded to GCC-12 and GCC-12 found a warning in generated code by xsdcxx. However, warnings are considered an error in our project. The warning is as follows: One of the classes created by xsdcxx contains a user defined copy constructor. Hoewever, as of C++11, the generation of implicitly-defined copy constructor is deprecated if T has a user-defined destructor or user-defined cop assignment operator (which is the case here). This will cause the following error: error: implicitly-declared ?A::B& A::B::operator=(const A::B&)? is deprecated [-Werror=deprecated-copy] [build] 193 | some_var = *some_other_var; Is there a fix for this? I have tried several things including the suppression of this warning using ?[ h | cxx ]-[ pro | epi ]logue using #pragma GCC diagnostic ignored "-Wdeprecated-copy" Kind regards, Marc Dirven Programmeur PRL [cid:6e61a79a-287b-4d89-807b-74908643a60c] E marc.dirven@intraffic.nl M +31 (0)6 43 61 64 97 P +31 (0)6 36 39 94 83 W intraffic.nl [Afbeelding met tekening, bord Automatisch gegenereerde beschrijving][cid:3ba0582a-4fb7-43ec-9d0b-9a6bc04417af] [cid:bc094904-4c4b-404c-ba87-a8a00a422c27] [cid:931cd7ba-1190-4105-a0ef-641836123ed0] Visiting address: Iepenhoeve 11, 3438 MR Nieuwegein -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-d3l4rxnk Type: image/jpg Size: 132361 bytes Desc: Outlook-d3l4rxnk Url : https://codesynthesis.com/pipermail/xsd-users/attachments/20230607/33830288/Outlook-d3l4rxnk-0001.jpg -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-pglhconf.png Type: image/png Size: 276 bytes Desc: Outlook-pglhconf.png Url : https://codesynthesis.com/pipermail/xsd-users/attachments/20230607/33830288/Outlook-pglhconf-0001.png -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-Afbeelding.png Type: image/png Size: 738 bytes Desc: Outlook-Afbeelding.png Url : https://codesynthesis.com/pipermail/xsd-users/attachments/20230607/33830288/Outlook-Afbeelding-0001.png -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-amzlx35l.png Type: image/png Size: 760 bytes Desc: Outlook-amzlx35l.png Url : https://codesynthesis.com/pipermail/xsd-users/attachments/20230607/33830288/Outlook-amzlx35l-0001.png -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-za14f1fn.png Type: image/png Size: 685 bytes Desc: Outlook-za14f1fn.png Url : https://codesynthesis.com/pipermail/xsd-users/attachments/20230607/33830288/Outlook-za14f1fn-0001.png -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-jcqwb22w.png Type: image/png Size: 639 bytes Desc: Outlook-jcqwb22w.png Url : https://codesynthesis.com/pipermail/xsd-users/attachments/20230607/33830288/Outlook-jcqwb22w-0001.png From boris at codesynthesis.com Wed Jun 7 09:18:20 2023 From: boris at codesynthesis.com (Boris Kolpackov) Date: Wed Jun 7 09:09:25 2023 Subject: [xsd-users] Deprecated user defined copy constructor In-Reply-To: References: Message-ID: Dirven M (Marc) writes: > error: implicitly-declared ?A::B& A::B::operator=(const A::B&)? is deprecated [-Werror=deprecated-copy] > > Is there a fix for this? Yes, I believe this has been fixed for the next release of XSD by the following commit: https://git.codesynthesis.com/cgit/xsd/xsd/commit/?id=7eaca4def408b73fdbc3362242569416341a24a3 If you would like to try the pre-release with this fix, the instructions are here: https://codesynthesis.com/products/xsd/doc/install-build2.xhtml From marc.dirven at intraffic.nl Wed Jun 7 09:22:51 2023 From: marc.dirven at intraffic.nl (Dirven M (Marc)) Date: Thu Jun 8 08:38:13 2023 Subject: [xsd-users] Deprecated user defined copy constructor In-Reply-To: References: Message-ID: Hi thanks for the quick response. Is there any insight into when this new version will be released? Kind regards, Marc Dirven Programmeur PRL [cid:459b43cb-06d9-4393-ad3d-48ebb9d3becb] E marc.dirven@intraffic.nl M +31 (0)6 43 61 64 97 P +31 (0)6 36 39 94 83 W intraffic.nl [Afbeelding met tekening, bord Automatisch gegenereerde beschrijving][cid:ab1bbfbe-b446-47f9-895e-62150e29aba0] [cid:6fd2893d-3141-4eb7-b9d1-f1a5753e31c5] [cid:794f4783-1150-4f11-8eaa-6f2540f5496e] Visiting address: Iepenhoeve 11, 3438 MR Nieuwegein ________________________________ From: Boris Kolpackov Sent: Wednesday, June 7, 2023 15:18 To: Dirven M (Marc) Cc: xsd-users@codesynthesis.com Subject: Re: [xsd-users] Deprecated user defined copy constructor [You don't often get email from boris@codesynthesis.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] Dirven M (Marc) writes: > error: implicitly-declared ?A::B& A::B::operator=(const A::B&)? is deprecated [-Werror=deprecated-copy] > > Is there a fix for this? Yes, I believe this has been fixed for the next release of XSD by the following commit: https://git.codesynthesis.com/cgit/xsd/xsd/commit/?id=7eaca4def408b73fdbc3362242569416341a24a3 If you would like to try the pre-release with this fix, the instructions are here: https://codesynthesis.com/products/xsd/doc/install-build2.xhtml -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-y03hj5pt Type: image/jpg Size: 132361 bytes Desc: Outlook-y03hj5pt Url : https://codesynthesis.com/pipermail/xsd-users/attachments/20230607/a7efd359/Outlook-y03hj5pt-0001.jpg -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-edtdrckq.png Type: image/png Size: 276 bytes Desc: Outlook-edtdrckq.png Url : https://codesynthesis.com/pipermail/xsd-users/attachments/20230607/a7efd359/Outlook-edtdrckq-0001.png -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-Afbeelding.png Type: image/png Size: 738 bytes Desc: Outlook-Afbeelding.png Url : https://codesynthesis.com/pipermail/xsd-users/attachments/20230607/a7efd359/Outlook-Afbeelding-0001.png -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-zjkfftvf.png Type: image/png Size: 760 bytes Desc: Outlook-zjkfftvf.png Url : https://codesynthesis.com/pipermail/xsd-users/attachments/20230607/a7efd359/Outlook-zjkfftvf-0001.png -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-cojlzv1y.png Type: image/png Size: 685 bytes Desc: Outlook-cojlzv1y.png Url : https://codesynthesis.com/pipermail/xsd-users/attachments/20230607/a7efd359/Outlook-cojlzv1y-0001.png -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-vkjrxaqv.png Type: image/png Size: 639 bytes Desc: Outlook-vkjrxaqv.png Url : https://codesynthesis.com/pipermail/xsd-users/attachments/20230607/a7efd359/Outlook-vkjrxaqv-0001.png From boris at codesynthesis.com Thu Jun 8 08:51:52 2023 From: boris at codesynthesis.com (Boris Kolpackov) Date: Thu Jun 8 08:42:56 2023 Subject: [xsd-users] Deprecated user defined copy constructor In-Reply-To: References: Message-ID: Dirven M (Marc) writes: > Is there any insight into when this new version will be released? We aim for a release in a few months. The current pre-release is essentially an RC, we just need to wrap up the binary distribution generation setup.