public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/94199] New: std::experimental::net::v1::make_service function template not instantiatable
@ 2020-03-16 20:16 erich.keane at intel dot com
  2020-03-16 21:42 ` [Bug libstdc++/94199] " redi at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: erich.keane at intel dot com @ 2020-03-16 20:16 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-03-17 13:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-16 20:16 [Bug libstdc++/94199] New: std::experimental::net::v1::make_service function template not instantiatable erich.keane at intel dot com
2020-03-16 21:42 ` [Bug libstdc++/94199] " redi at gcc dot gnu.org
2020-03-16 22:53 ` cvs-commit at gcc dot gnu.org
2020-03-16 23:03 ` cvs-commit at gcc dot gnu.org
2020-03-16 23:15 ` redi at gcc dot gnu.org
2020-03-17  1:21 ` erich.keane at intel dot com
2020-03-17 13:01 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).