Skip to content

hash: async_cobalt_test compiles on GCC 14, whose -Wmismatched-new-delete misreads Boost.Cobalt's promise allocation - #7

Merged
pinhopro merged 1 commit into
mainfrom
fix/gcc-14-async-cobalt
Nov 19, 2026
Merged

pinhopro merged 1 commit into
mainfrom
fix/gcc-14-async-cobalt

Conversation

@pinhopro

Copy link
Copy Markdown
Contributor

What changes

async_cobalt_test compiles on GCC 14 again. It is the one failure of hash in main's full CI (webcpporg/webcpp run 44526929621): GCC 14 calls Boost.Cobalt's own operator new and operator delete of 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).

  • The test's promises are compiled with that warning off on GCC 14 alone, between a #pragma GCC diagnostic push and its pop, as webcpp::cobalt's tests and webcpp::document's Cobalt example already do.

No changelog line: only a test changes.

Verified locally

  • The CI's compile command with Homebrew's g++-14 fails with the CI's two errors before the change and passes after it; g++-15 passes.
  • b2 toolset=gcc-14 runs async_cobalt and async_cobalt_no_exceptions: both pass.
  • The lint, over hash and trystero: clean (formatting, text rules, clang-tidy).

The owner chose to merge without CI; main's next full CI checks it.

🤖 Generated with Claude Code

…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.
@pinhopro
pinhopro merged commit cc1f61a into main Nov 19, 2026
1 of 8 checks passed
@pinhopro
pinhopro deleted the fix/gcc-14-async-cobalt branch November 19, 2026 16:44
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