Repository navigation
hash: async_cobalt_test compiles on GCC 14, whose -Wmismatched-new-delete misreads Boost.Cobalt's promise allocation - #7
Merged
Conversation
…smatched-new-delete, which calls Boost.Cobalt's own operator new and delete of a coroutine frame a mismatched pair GCC 14 reports the pair of boost::cobalt::promise_memory_resource_base as mismatched (boostorg/cobalt#7) and -Werror makes it an error, as in webcpp::cobalt's own tests and webcpp::document's example, which suppress it the same way; GCC 15 does not report it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
async_cobalt_testcompiles on GCC 14 again. It is the one failure ofhashin main's full CI (webcpporg/webcpp run 44526929621): GCC 14 calls Boost.Cobalt's ownoperator newandoperator deleteof a promise's frame a mismatched pair (-Werror=mismatched-new-delete, lines 100 and 119), a false positive GCC 15 does not report (boostorg/cobalt#7).#pragma GCC diagnostic pushand itspop, as webcpp::cobalt's tests and webcpp::document's Cobalt example already do.No changelog line: only a test changes.
Verified locally
g++-14fails with the CI's two errors before the change and passes after it;g++-15passes.b2 toolset=gcc-14runsasync_cobaltandasync_cobalt_no_exceptions: both pass.The owner chose to merge without CI; main's next full CI checks it.
🤖 Generated with Claude Code