public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95808] New: Can mismatch non-array new/delete with array new/delete during constant evaluation
@ 2020-06-22  3:22 johelegp at gmail dot com
  2020-10-02 22:48 ` [Bug c++/95808] " redi at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: johelegp at gmail dot com @ 2020-06-22  3:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95808
           Summary: Can mismatch non-array new/delete with array
                    new/delete during constant evaluation
           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/ZHiKmm.
```C++
constexpr void f()
{
    delete[] new int;
    delete new int[1];
}
constexpr int x{([]() consteval { f(); }(), 0)};
```

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

end of thread, other threads:[~2021-08-29  0:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-22  3:22 [Bug c++/95808] New: Can mismatch non-array new/delete with array new/delete during constant evaluation johelegp at gmail dot com
2020-10-02 22:48 ` [Bug c++/95808] " redi at gcc dot gnu.org
2020-10-15 15:33 ` jakub at gcc dot gnu.org
2020-10-29 15:27 ` cvs-commit at gcc dot gnu.org
2020-10-29 16:09 ` jakub at gcc dot gnu.org
2021-08-04 17:15 ` pinskia at gcc dot gnu.org
2021-08-28  0:00 ` pinskia at gcc dot gnu.org
2021-08-29  0:34 ` pinskia 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).