Bug in TH1F Rebin? [edit: Bug identified]

Hello,
maybe i missed something, but i looker carefully, and cant find the error. This code is supposed to rebin histo, but new stays empty:

{
   TH1 *histo = new TH1F("histo","histo",200,0,400);
   histo->SetBinContent(31,584);
   histo->SetBinContent(32,502);

   double myarray[6];
   myarray[0]=0;
   myarray[1]=50;
   myarray[2]=100;
   myarray[3]=200;
   myarray[4]=300;
   myarray[5]=400;

   TH1 *neu;
   neu = histo->Rebin(5,"neu",myarray);
   neu->SetLineColor(3);
   for (int i=0;i<7;i++)   cout << "bincontent " << i << " : "  << neu->GetBinContent(i) << endl;
}

I noticed, that it works correct, if i define histo like this:

   TH1 *histo = new TH1F("histo","histo",20,0,400);
   histo->SetBinContent(3,584);
   histo->SetBinContent(4,502);

Is there a problem with TH1F::Rebin, or did i misunderstand how it is supposed to work?
Thx for help,

Thomas

P.S.:
I tried with ROOT 5.17/04 // CINT/ROOT C/C++ Interpreter version 5.16.26, Oct 11, 2007 and
ROOT 5.18/00b (branches/v5-18-00-patches@22563, Apr 17 2008, 19:04:00 on linux) CINT/ROOT C/C++ Interpreter version 5.16.29, Jan 08, 2008

[/code]

I found the bug, and submitted a bugreport, with a description of a fix:

savannah.cern.ch/bugs/?39494

I really wonder, why noone else has noticed that before.