Hi All, I am facing one of the typical scenario in the Tornado
2.2.1/vxWorks 5.5.1 g++pentium 2.9 compiler. This Compiler is not initialising properly any of the member array of function pointers either 1-dimensional or 2-dimensional. For this problem i got a solution from windriver because it is one of the SPR'S it's number : 110843 so i installed the Service Patch: Tornado 2.2.1 Service Pack 1 (Tornado 2.2.1 Cumulative Update Patch). This will update my Tornado version to 2.2.2(earlier 2.2.1) & vxWorks to 5.5.2(earlier 5.5.1). I thought problem will get resolved after this. But the thing is i am still facing the same problem.Source Code:
#include
using namespace std;
class test; typedef void (test::*fp)(); class test { public: void f1(); void f2(); void f3(); void f4(); void f5(); void f6(); void f7(); void f8(); static fp fptr[4][2]; void f();
};
fp test::fptr[4][2]= { {&test::f1,&test::f2}, {&test::f3,&test::f4}, {&test::f5,&test::f6}, {&test::f7,&test::f8}
};
void test::f() { for(int i=0; i