Repository navigation
[GNATS 27520] Spurious diagnostic no instance of overloaded "boost::cobalt::detail::partial_promis_base<Allocator>::operator new #156
jhsedg
started this conversation in
Issue Triage - General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Customer bug ID
cobalt/test/context.test/context.cpp, _27520.C
Description
Preprocessed Boost test
cpfe -DTEST_NUMBER=1 --gnu_version=120100 -w -tused --c++20 Test_name.c
"../boost/cobalt/detail/wrapper.hpp", line 141: error: no instance of
overloaded
"boost::cobalt::detail::partial_promise_base::operator new
[with Allocator=std::pmr::polymorphic_allocator]" matches the
argument list
argument types are: (unsigned long)
auto post_coroutine(CompletionToken token)
^
"../boost/cobalt/detail/wrapper.hpp", line 37: note: number of parameters of
function template
"boost::cobalt::detail::partial_promise_base::operator
new(std::size_t, Executor &, CompletionToken &) [with
Allocator=std::pmr::polymorphic_allocator]" does not match the
call
void * operator new(const std::size_t size, Executor &, CompletionToken & token)
^
"../boost/cobalt/detail/wrapper.hpp", line 29: note: number of parameters of
function template
"boost::cobalt::detail::partial_promise_base::operator
new(std::size_t, CompletionToken &) [with
Allocator=std::pmr::polymorphic_allocator]" does not match the
call
void * operator new(const std::size_t size, CompletionToken & token)
^
detected during:
instantiation of "auto
boost::cobalt::detail::post_coroutine(CompletionToken)->s
td::__n4861::coroutine_handle<boost::cobalt::detail::post
_coroutine_promise<boost::asio::associated_allocator_t<Co
mpletionToken, std::allocator>>> [with
CompletionToken=completion_handler]" at line 155 of
"../boost/cobalt/detail/spawn.hpp"
instantiation of "void
boost::cobalt::detail::async_initiate_spawn::operator()(H
andler &&, boost::cobalt::task) [with Handler=void
()(std::__exception_ptr::exception_ptr)]" at line 331 of
"../boost/asio/async_result.hpp"
instantiation of
"boost::asio::detail::completion_handler_async_result<Com
pletionToken, Signatures...>::return_type
boost::asio::detail::completion_handler_async_result<Comp
letionToken, Signatures...>::initiate(Initiation &&,
RawCompletionToken &&, Args &&...) [with
CompletionToken=void
()(std::__exception_ptr::exception_ptr),
Signatures=<void (std::__exception_ptr::exception_ptr)>,
Initiation=boost::cobalt::detail::async_initiate_spawn,
RawCompletionToken=void
()(std::__exception_ptr::exception_ptr),
Args=<boost::cobalt::task>]" at line 632 of
"../boost/asio/async_result.hpp"
instantiation of "auto
boost::asio::async_initiate<CompletionToken,Signatures...
,Initiation,Args...>(Initiation &&,
boost::asio::type_identity_t &, Args
&&...)->decltype(()) [with
CompletionToken=void
()(std::__exception_ptr::exception_ptr),
Signatures=<void (std::__exception_ptr::exception_ptr)>,
Initiation=boost::cobalt::detail::async_initiate_spawn,
Args=<boost::cobalt::task>]" at line 38 of
"../boost/cobalt/spawn.hpp"
1 error detected in the compilation of "Test_name.c".
All reactions