[Bug libstdc++/94199] New: std::experimental::net::v1::make_service function template not instantiatable
erich.keane at intel dot com
gcc-bugzilla@gcc.gnu.org
Mon Mar 16 20:16:16 GMT 2020
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
More information about the Gcc-bugs
mailing list