https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94199
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:c62f5e6e1f457462b1cea74792833821bbea64bb commit r10-7200-gc62f5e6e1f457462b1cea74792833821bbea64bb Author: Jonathan Wakely <jwak...@redhat.com> Date: Mon Mar 16 22:53:42 2020 +0000 libstdc++: Add default constructor to net::service_already_exists (PR 94199) The service_already_exists exception type specified in the TS doesn't have any constructors defined. Since its base class isn't default constructible, that means has no usable constructors. This may be a defect in the TS. This patch fixes it by adding a default constructor, but making it private. The make_service function is declared as a friend to be able to call that private constructor. PR libstdc++/94199 * include/experimental/executor (service_already_exists): Add default constructor. Declare make_service to be a friend. * testsuite/experimental/net/execution_context/make_service.cc: New test.