The following functions are incorrectly implemented:
The following errors occur when using C++ with the HC(S)08 compiler.
int func(float, float, float );
func(f, 6.000300000e0, 5.999700000e0)
the second value becomes -6.0003
switch (a){
case 'a': break;
default :
int x = 1;
----------^--------------ERROR: Not declared x
}
if(int i = 0) ------^-----------------ERROR
The following internal errors occur when using C++ with the HC(S)08 compiler:
long double & f(int i ) {return 1;}
long double i;
if (f(i)!=i)
--------^-----------------Internal Error
class C{
public:
int n;
operator int() { return n; };
}cy;
switch(cy) {
--------^-------------ERROR
case 1:
break;
default:
break;
}
#include <time.h> struct std::tm T;
class C {
public:
int a;
unsigned func() { return 1;}
};
unsigned (C::*pf)() = &C::func;
if (pf != 0 );
-------^------------------Generates the error
struct Index {
int s;
Index(int size) { s = size; }
~Index(void){ ++x; }
};
for (int i = 0; i < 10; i++)
for (Index j(0); j.s < 10; j.s++) {
// ...
}