public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/111840] New: =delete("can have a reason")?
@ 2023-10-16 21:11 ed at catmur dot uk
  2023-10-17 15:00 ` [Bug c++/111840] " redi at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ed at catmur dot uk @ 2023-10-16 21:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111840
           Summary: =delete("can have a reason")?
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ed at catmur dot uk
  Target Milestone: ---

Since 6.1, gcc accepts the following (without warnings at any level):

int f() = delete("should have a reason");

Much as I'd love to be able to write this, gcc seems to be slightly jumping the
gun, since P2573[1][2] hasn't been accepted yet and in fact wasn't even
proposed until almost 6 years after 6.1 was released.

1. https://github.com/cplusplus/papers/issues/1229
2. https://wg21.link/p2573r0

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

end of thread, other threads:[~2023-10-17 21:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-16 21:11 [Bug c++/111840] New: =delete("can have a reason")? ed at catmur dot uk
2023-10-17 15:00 ` [Bug c++/111840] " redi at gcc dot gnu.org
2023-10-17 15:12 ` mpolacek at gcc dot gnu.org
2023-10-17 21:45 ` cvs-commit at gcc dot gnu.org
2023-10-17 21:46 ` 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).