]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/c-family/ChangeLog
PR c++/87996 - size of array is negative error when SIZE_MAX/2 < sizeof(array) <...
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
index dd1173f04872dc877b724bed1b43a5722cfc0dce..7dae7bf530a88a23d4e49d1174746b773a93cd73 100644 (file)
@@ -1,3 +1,11 @@
+2019-02-11  Martin Sebor  <msebor@redhat.com>
+
+       PR c++/87996
+       * c-common.c (invalid_array_size_error): New function.
+       (valid_array_size_p): Call it.  Handle size as well as type.
+       * c-common.h (valid_constant_size_p): New function.
+       (enum cst_size_error): New type.
+
 2019-01-31  David Malcolm  <dmalcolm@redhat.com>
 
        PR c/89122