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