]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
class.c (type_requires_array_cookie): Fix use of uninitialised variable has_two_argum...
authorGraham Stott <grahams@redhat.com>
Mon, 23 Jul 2001 06:34:51 +0000 (06:34 +0000)
committerGraham Stott <grahams@gcc.gnu.org>
Mon, 23 Jul 2001 06:34:51 +0000 (06:34 +0000)
* cp/class.c (type_requires_array_cookie): Fix use of uninitialised
variable has_two_argument_delete_p.

From-SVN: r44256

gcc/cp/ChangeLog
gcc/cp/class.c

index ed073c1ae37b88ab3a217fc774686a32d4e95e3c..98bae08fd3b736967a812a7848465fef8bc05db9 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-23  Graham Stott  <grahams@redhat.com>
+
+       * cp/class.c (type_requires_array_cookie): Fix use of uninitialised
+       variable has_two_argument_delete_p.
+
 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
 
        Remove flag_vtable_thunk. It is always on for the 3.0 ABI.
index 16677583883dbfeb1d3a2022c2d5417ec8b21718..be04e89e7d3a2f6b3c377e1fe4b4362938047e06 100644 (file)
@@ -4304,7 +4304,7 @@ type_requires_array_cookie (type)
      tree type;
 {
   tree fns;
-  bool has_two_argument_delete_p;
+  bool has_two_argument_delete_p = false;
 
   my_friendly_assert (CLASS_TYPE_P (type), 20010712);