ID 580731 - STLAllocator copy constructor fails to compile for the NDK

Follow

Problem summary
The STLAllocator copy constructor is incorrect
 
STLInstanceClassName(const STLInstanceClassName& other)
{
mFnAssert( other._AllocatorInstance != NULL );
other._AllocatorInstance = _AllocatorInstance;
}

Customer reported version
Nuke.15.1v1
Customer reported platform
Linux
Steps to reproduce
1) Create a Planarlop based C++ plugin for Nuke
2) Try to compile against Nuke with GCC 14, it fails.
Expected behaviour
Successful compilation.
Actual behaviour
Terminated compilation with error:

15.1.1/include/DDImage/BlockAllocator.h:79:1:error: assignment of member '_AllocatorInstance' in read-only object
79 | mFnCreateInstanceSTLAllocator(STLBlockAllocator, BlockAllocator)

Workaround
Unknown. 
Reproduced by support
This bug has been reproduced in:
Nuke 14.1, 15.0, 15.1
Earliest version tested
Nuke 14.1
- This issue appears to be in all versions of the product

    We're sorry to hear that

    Please tell us why