Re: [ROOT] error compiling TBtree with gcc 2.95.2

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Fri Sep 08 2000 - 00:49:45 MEST


Hi Dennis,

  did you report this big compiler bug to the gcc people so they can
fix it for 2.95.3 !!

Cheers, Fons.


On Thu, Sep 07, 2000 at 06:02:35PM +0200, denis bertini wrote:
> 
> 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
> 
> -- 
> 
> 

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



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