c++ - Bug report
- Eduardo David Nunes <Eduardo_member pathlink.com> Aug 27 2002
- "Walter" <walter digitalmars.com> Aug 27 2002
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
Aug 27 2002








"Walter" <walter digitalmars.com>