https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71415
--- Comment #1 from Martin Ejdestig <marejde at gmail dot com> --- Sorry, a copy paste error slipped in. Last print out should be: std::cout << "error_code operator bool: " << (error_code ? true : false) << '\n'; Output is still the same though.