This forum has been archived. Please start a new discussion on GitHub.

slice2cpp made cpp file bug

I used slice2cpp to generate cpp files and I found the code which created have a bug:

module testbug
class A
int var1;
int var2;

class B extends A
int var3;
int var4;


some code in test.cpp created by slice2cpp.exe:

testbug::B::B(::Ice::Int __ice_var1, ::Ice::Int __ice_var2, ::Ice::Int __ice_var3, ::Ice::Int __ice_var4) :
#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
A(var1, var2),
::testbug::A(var1, var2), //Must be ::testbug::A(__ice_var1, __ice_var2),


  • I viewed someone found this bug

    I viewed someone found this bug. so void my thread. :)