CINT's type system?

I have the following (on a Mandrake 10 Official ( gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)
ROOT * Version 4.01/03 29 September 2004 *
CINT/ROOT C/C++ Interpreter version 5.15.153, Sep 20 2004
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] Double_t a = 17 ;
root [1] Double_t s = a ;
root [2] s
(Double_t
)0x11
Why this is permited ?
In gcc the following :
int main()
{
double a = 17;
double *s = a;
}

gives me :
adrian@nthez145: misc $ g++ test.cxx
test.cxx: In function int main()': test.cxx:4: error: cannot convertdouble’ to `double*’ in initialization

Thanks !!

Hello Adrian,

Thank you for reporting this bug. Cint has to detect the type mismatch. I already fixed it for re-engineered code, but legacy code hasn’t been fixed. Let me think how to deal with it. I might put this off and concentrate on re-engineering.

Masa Goto