Home Bug Reports

slice2cpp made cpp file bug

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

test.ice:

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),
#else
::testbug::A(var1, var2), //Must be ::testbug::A(__ice_var1, __ice_var2),
#endif
var3(__ice_var3),
var4(__ice_var4)
{
}

Comments

  • hyz1840hyz1840 Member
    I viewed someone found this bug

    I viewed someone found this bug. so void my thread. :)
Sign In or Register to comment.