GCC's -Wmismatched-new-delete warns on usages of co_composed. Although this may be spurious, it could indicate an intrinsic issue.
The warnings can be reproduced with asio's native tests of co_composed.
Reproduction
I'm not sure how to compile & run individual tests in asio, but the tests of concern are those in asio/src/tests/unit/experimental/co_composed.cpp. Reproducing these warnings was accomplished with GCC 13.2.1 through:
git clone https://github.com/chriskohlhoff/asio.git
cd asio/asio
./autogen.sh
./configure CXXFLAGS='-std=c++20 -Wmismatche-new-delete'
make check
Forward: asio is a gift to humanity.
Issue
GCC's
-Wmismatched-new-delete
warns on usages of co_composed. Although this may be spurious, it could indicate an intrinsic issue. The warnings can be reproduced with asio's native tests of co_composed.Reproduction
I'm not sure how to compile & run individual tests in asio, but the tests of concern are those in
asio/src/tests/unit/experimental/co_composed.cpp
. Reproducing these warnings was accomplished with GCC 13.2.1 through:Sample Warning