Bug in 2.161:derive class call wrong base method
there are 4 classes,When C3 calls "Fun()",I think it should call C2::Fun,but it prints "C1:Fun" in this case;
When I comment the "void dumy(){}" line,it prints "C2::Fun",So I think maybe its a bug.
class C0
{
void dumy(){}//comment this line to make the "Fun()" call right
};
class C1:C0
{
void Fun()
{
print("C1:Fun");
}
};
class C2:C1
{
void Fun()
{
print("C2:Fun");
}
};
class C3:C2
{
void call(){Fun();}
};
C3 c3();c3.call();
Thanks for the report. I've reproduced the bug, and will hopefully have a fix for it soon.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement