Skip to content

Conversation

@marcauberer
Copy link
Contributor

The warning triggers for the overloads for operator new/delete in BumpAllocator, because the BumpAllocator class is templated with the SlabSize. GCC does select the correct overload of operator new/delete, but produces a warning. Since we build with -Wall -Werror this results in a compile error. We are in the process of reporting this to GCC, but for now let's disable the warning.

The warning triggers for the overloads for operator new/delete in
BumpAllocator, because the BumpAllocator class is templated with the
SlabSize. GCC does select the correct overload of operator new/delete,
but produces a warning. Since we build with -Wall -Werror this results
in a compile error. We are in the process of reporting this to GCC, but
for now let's disable the warning.
@marcauberer
Copy link
Contributor Author

Here is a minimal reproducer for the potential GCC bug:
https://compiler-explorer.com/z/M6sE5dYoY

@marcauberer marcauberer changed the title [CMAKE][NFC] Disable mismatched-new-delete warning in GCC [CMake][NFC] Disable mismatched-new-delete warning in GCC Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant