August 27, 2002 Bug report | ||||
---|---|---|---|---|
| ||||
sc, version 8.29n //--- file.cpp --- #include <math.h> class A { float m_x; public: A(float x) {m_x=x;} void foo(void *obj,int n,int *type,double *conf,double *val,double *use); }; void A::foo(void *obj,int n,int *type,double *conf,double *val,double *use) { float x; x = (float)pow(m_x, 3.0); if(x>0.5f) *(type) |= 8; *(val) = 3.0; *(val) += (double)(x)/2.0; } int main(void) { A a(0.75); double c=1.0, v=2.0, u=3.0; int t=0.0; a.foo(&a,1,&t,&c,&v,&u); return 0; } //--- end of file.cpp command line: sc -o+speed -ff file.cpp Internal error: cg87 268 thanks, Eduardo Nunes |
August 27, 2002 Re: Bug report | ||||
---|---|---|---|---|
| ||||
Posted in reply to Eduardo David Nunes | Got it, thanks. -Walter |
Copyright © 1999-2021 by the D Language Foundation