public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/106968] New: ignored noexcept(false) in explicitly-defaulted functions
@ 2022-09-19 12:26 fchelnokov at gmail dot com
  2022-09-20  9:23 ` [Bug c++/106968] " redi at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: fchelnokov at gmail dot com @ 2022-09-19 12:26 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106968
           Summary: ignored noexcept(false) in explicitly-defaulted
                    functions
           Product: gcc
           Version: 12.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fchelnokov at gmail dot com
  Target Milestone: ---

This code is accepted in Clang and MSVC:
```
#include <type_traits>

struct A {
    A(A &&) noexcept(false) = default;
};

static_assert(!std::is_nothrow_move_constructible_v<A>);
```
but in GCC static assertion fails, online demo: https://godbolt.org/z/x3Gz46Exe

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

* [Bug c++/106968] ignored noexcept(false) in explicitly-defaulted functions
  2022-09-19 12:26 [Bug c++/106968] New: ignored noexcept(false) in explicitly-defaulted functions fchelnokov at gmail dot com
@ 2022-09-20  9:23 ` redi at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2022-09-20  9:23 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
.

*** This bug has been marked as a duplicate of bug 100470 ***

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

end of thread, other threads:[~2022-09-20  9:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-19 12:26 [Bug c++/106968] New: ignored noexcept(false) in explicitly-defaulted functions fchelnokov at gmail dot com
2022-09-20  9:23 ` [Bug c++/106968] " 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).