https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94199
Bug ID: 94199 Summary: std::experimental::net::v1::make_service function template not instantiatable Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: erich.keane at intel dot com Target Milestone: --- Discovered in Clang, since Clang diagnoses the issue without an instantiation, here is a GCC repro: https://godbolt.org/z/7guiic The function template tries to throw service_already_exists, which isn't default constructible: /opt/compiler-explorer/gcc-trunk-20200316/include/c++/10.0.1/experimental/executor:581:8: error: use of deleted function 'std::experimental::net::v1::service_already_exists::service_already_exists()' 581 | throw service_already_exists(); Clang diagnoses just attempting to #include the file: https://godbolt.org/z/yH9kNp