This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36159] C++ compiler should issue a warning with missing new operator
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 10 Oct 2015 16:07:55 +0000
- Subject: [Bug c++/36159] C++ compiler should issue a warning with missing new operator
- Auto-submitted: auto-generated
- References: <bug-36159-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36159
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-10-10
Ever confirmed|0 |1
--- Comment #12 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed. As noted in bug 67911, the solution proposed for the next version
of C++ is the following:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0035r0.html
Until it's accepted and implemented, issuing a warning would help users avoid
the trap. I happen to be working in this area so I'll see if I can come up
with something.