public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96090] New: Inconsistent querying of differring exception specifications of explicitly defaulted functions
@ 2020-07-07  0:22 johelegp at gmail dot com
  2020-07-07  7:25 ` [Bug c++/96090] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: johelegp at gmail dot com @ 2020-07-07  0:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96090

            Bug ID: 96090
           Summary: Inconsistent querying of differring exception
                    specifications of explicitly defaulted functions
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: johelegp at gmail dot com
  Target Milestone: ---

See https://godbolt.org/z/SiGMyX.
```C++
#include <type_traits>
using namespace std;
struct yesthrow_t
{
    yesthrow_t()                              noexcept(false) = default;
    yesthrow_t(const yesthrow_t&)             noexcept(false) = default;
    yesthrow_t(      yesthrow_t&&)            noexcept(false) = default;
    yesthrow_t& operator=(const yesthrow_t&)  noexcept(false) = default;
    yesthrow_t& operator=(      yesthrow_t&&) noexcept(false) = default;
};
static_assert(!is_nothrow_default_constructible_v<yesthrow_t>);
static_assert(!is_nothrow_copy_constructible_v<   yesthrow_t>);
static_assert(!is_nothrow_copy_assignable_v<      yesthrow_t>);
static_assert(!is_nothrow_move_constructible_v<   yesthrow_t>);
static_assert(!is_nothrow_move_assignable_v<      yesthrow_t>);
```
https://gcc.gnu.org/ml/gcc-patches/2019-09/msg00311.html calls out a single
case, but not this inconsistency.

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

end of thread, other threads:[~2024-02-06 14:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-07  0:22 [Bug c++/96090] New: Inconsistent querying of differring exception specifications of explicitly defaulted functions johelegp at gmail dot com
2020-07-07  7:25 ` [Bug c++/96090] " redi at gcc dot gnu.org
2021-08-29  0:17 ` [Bug c++/96090] noexcept operator of potentially-throwing defaulted function gives the wrong result johelegp at gmail dot com
2023-10-28  8:23 ` nathanieloshead at gmail dot com
2023-12-11  2:34 ` cvs-commit at gcc dot gnu.org
2024-02-06 14:42 ` mpolacek 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).