0

The clang compiler shipping with Xcode 26 does not support sized deallocation:

void* p = operator new(100);
// [...]
operator delete(p, 100); // error: no matching function for call to 'operator delete'

The previous version Xcode 16 did support this.

1 Answer 1

2

The clang shipping with Xcode 26 needs an extra compiler flag for this: -fsized-deallocation. Adding this to Other C++ flags solves the issue.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.