[ROOT] error compiling TBtree with gcc 2.95.2

From: denis bertini (d.bertini@gsi.de)
Date: Thu Sep 07 2000 - 18:02:35 MEST


Hi,
Just for information: 

 Compiling TBtree.cxx  from Root 225-02 with  gcc 2.95.2 on an PC running 
   Red Hat 6.2 give a "compiler Internal error". 
  Changing Line 683 from TBtree.cxx :


   TBtInnerNode::TBtInnerNode(TBtInnerNode *parent, TBtree *tree, TBtNode *oldroot)
                : TBtNode(0, parent, tree)
    {
      // Called only by TBtree to initialize the TBtInnerNode that is
       // about to become the root
        <<<<  fItem = new TBtItem[  MaxIndex() + 1 ];
      by  the following 2 lines
        >>>>  const Int_t index = MaxIndex() + 1;
        >>>>   fItem = new TBtItem[ index ];
 
   seems to solve the problem.  

                                                      Denis Bertini
                                                       KP1-GSI Darmstadt

-- 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:32 MET