C
Colonel Kernel
I've found what seems to be a very serious (although obscure) bug in
VC++.NET 2003 when using Loki's class hierarchy-generation facilities.
The compiler seems to generate an invalid v-table for my class, which
causes virtual method calls to dispatch incorrectly, causing run-time
errors and crashes. The problem seems to occur because the compiler
doesn't catch the case where I give a template method the same name as
a virtual method defined elsewhere in the same hierarchy.
I have a repro ready to go. It's about as simple as I can make it, but
familiarity with Loki's GenScatterHierarchy and GenLinearHierarchy is
essential to understanding what's going on. Loki is required for the
repro (http://sourceforge.net/projects/loki-lib). If anyone is
interested in the repro (MSVC++ team, take note!), please e-mail me
at:
c_kernel at hotmail dot com
I couldn't find a KB article about this problem, so I assume I'm the
first to find it (lucky me). Although there seems to be a simple
workaround for this instance of the bug, its symptoms are very, very
serious. I urge everyone to watch out for it, and I urge those
responsible to get a fix out ASAP.
Bruce Johnston
Simba Technologies Inc.
www.simba.com
VC++.NET 2003 when using Loki's class hierarchy-generation facilities.
The compiler seems to generate an invalid v-table for my class, which
causes virtual method calls to dispatch incorrectly, causing run-time
errors and crashes. The problem seems to occur because the compiler
doesn't catch the case where I give a template method the same name as
a virtual method defined elsewhere in the same hierarchy.
I have a repro ready to go. It's about as simple as I can make it, but
familiarity with Loki's GenScatterHierarchy and GenLinearHierarchy is
essential to understanding what's going on. Loki is required for the
repro (http://sourceforge.net/projects/loki-lib). If anyone is
interested in the repro (MSVC++ team, take note!), please e-mail me
at:
c_kernel at hotmail dot com
I couldn't find a KB article about this problem, so I assume I'm the
first to find it (lucky me). Although there seems to be a simple
workaround for this instance of the bug, its symptoms are very, very
serious. I urge everyone to watch out for it, and I urge those
responsible to get a fix out ASAP.
Bruce Johnston
Simba Technologies Inc.
www.simba.com