When I run following code compiled with -O1 or higher I'm getting a SEGV
Issue appears in boost 1.81, no problem in 1.80 according to godbolt.
#include <boost/asio.hpp>
using namespace boost::asio;
int main() {
io_service io;
auto ex = get_associated_executor([]{}, io);
auto guard = make_work_guard(ex);
}
When I run following code compiled with -O1 or higher I'm getting a SEGV Issue appears in boost 1.81, no problem in 1.80 according to godbolt.
Godbolt
Either I'm using get_associated_executor incorrectly, or this is a bug.