|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - 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
Aug 27 2002
|