The following syntax use is not allowed when using explicit type conversions on an HC(S)08 compiler:
i = int();//A simple-type-name followed by a pair of parentheses
The following explicit type conversion features are unsupported at this time:
volatile int x = 1; volatile int& y= x; if((int&)y != 1); -------^-------------------------ERROR
class X {
public:
int i;
X(int a) { i = a; }
};
X x = 1;
x = 2;
-----^-------------------ERROR: Illegal cast-operation
class A {public: int x;};
class B : private A {
public:
int y;
};
int main(){
B b;
A *ap = (A *) &b;
---------------^----- ERROR: BASE_CLASS of class B cannot be accessed
}