This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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;
--------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]