public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/115558] New: Trivial noexcept(false) default constructor does not make value initialization potentially throwing
@ 2024-06-20 14:09 mital at mitalashok dot co.uk
  2024-06-20 14:39 ` [Bug c++/115558] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mital at mitalashok dot co.uk @ 2024-06-20 14:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 115558
           Summary: Trivial noexcept(false) default constructor does not
                    make value initialization potentially throwing
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mital at mitalashok dot co.uk
  Target Milestone: ---

This is related to DR2820 https://cplusplus.github.io/CWG/issues/2820.html

struct X {
    X() noexcept(false) = default;
};
static_assert(!noexcept(X()));  // Should pass, but does not

Similar to Bug 114844 and https://cplusplus.github.io/CWG/issues/2886.html

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

end of thread, other threads:[~2024-06-24 17:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-20 14:09 [Bug c++/115558] New: Trivial noexcept(false) default constructor does not make value initialization potentially throwing mital at mitalashok dot co.uk
2024-06-20 14:39 ` [Bug c++/115558] " pinskia at gcc dot gnu.org
2024-06-20 14:41 ` pinskia at gcc dot gnu.org
2024-06-24 17:08 ` 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).