C++ testsuite g++.other/new3.C fix

Mike Stump mrs@windriver.com
Wed Nov 1 18:31:00 GMT 2000


Be sure to initialize the size before use.  I already checked it in.

Doing diffs in new3.C.~1~:
*** new3.C.~1~	Wed Aug  9 18:31:26 2000
--- new3.C	Wed Nov  1 18:28:08 2000
*************** struct A
*** 6,11 ****
--- 6,12 ----
    int size;
    A ()
      {
+       size = 20;
        T *p;
        p = new T[size];
        int foo;
--------------


More information about the Gcc-patches mailing list