On 28.07.2014 12:54, pulkomandy wrote:
Knowing that this only happens with gcc2, I think it somehow misses the fact that the method is virtual when compiling the base class, and generates a direct call instead of a virtual one (going through the vtable).
It's fairly easy to verify/refute that theory by using objdump on the code that invokes the method (objdump -D --demangle ...). If you build with debug info you can even interleave the disassembly with the source code (-S option).
CU, Ingo