[Bug c++/67913] new expression with negative size not diagnosed

2015-11-09 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67913 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/67913] new expression with negative size not diagnosed

2015-11-09 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67913 --- Comment #3 from Martin Sebor --- Author: msebor Date: Tue Nov 10 02:23:34 2015 New Revision: 230081 URL: https://gcc.gnu.org/viewcvs?rev=230081&root=gcc&view=rev Log: PR c++/67913 - new expression with negative size not diagnosed PR c++/6792

[Bug c++/67913] new expression with negative size not diagnosed

2015-10-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67913 --- Comment #2 from Martin Sebor --- Complete patch posted for review: https://gcc.gnu.org/ml/gcc-patches/2015-10/msg01803.html

[Bug c++/67913] new expression with negative size not diagnosed

2015-10-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67913 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c++/67913] new expression with negative size not diagnosed

2015-10-09 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67913 --- Comment #1 from Martin Sebor --- The following otherwise untested patch makes GCC reject new expressions with negative numbers of elements: @@ -3066,6 +3378,14 @@ build_new (vec **placement, tree type, tree nelts, else