Bug in rootcint?

From: Federico Carminati (Federico.Carminati@cern.ch)
Date: Tue Mar 02 1999 - 16:26:47 MET


Dear Root'ers,
  consider this piece of code:



#include "TObject.h"

class junk : public TObject {
  junk(){
  const Float_t a=1;
  const Float_t b=1/a;
  }
  ~junk(){}
};


Of course it compiles without problems. But when rootcint is run I have
the following output:

Error: No symbol a in current scope  FILE:bug1.h LINE:6
Error: operator '/' divided by zero FILE:bug1.h LINE:6
Note: operator new() masked 1c
Note: operator delete() masked 1c

Cheers, Fed



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:29 MET