This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/63459] operator new and returns_nonnull
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 04 Oct 2014 20:26:57 +0000
- Subject: [Bug c++/63459] operator new and returns_nonnull
- Auto-submitted: auto-generated
- References: <bug-63459-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63459
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
VRP already optimizes this, doesn't it?
Adding an implicit __attribute__((nonnull(1))) to all C++ member functions
might be good, but it also sounds a bit scary to me...