g++ 2.95.1 and 2.95.2 bug ?
Benoit Steiner
steiner@isia.cma.fr
Thu Oct 21 16:26:00 GMT 1999
Hello,
I think I found a bug in the g++ compiler (both under the latest debian
potato with the 2.95.2 version and a Suse 6.0 with the 2.95.1 version) :
I have a base class that declare several pure virtual functions and a
derived one that implments all those methods. Everything compiles with
no problem with the -D_REENTRANT, -Wall and -g flags but at runtime I
get the following message :
pure virtual method called
zsh: abort vls
I traced the execution with gdb and I founf that when the last of the
pure virtual method is called, the system sends an abort signal and the
pure virtual method called message is displayed. The other virtual
methods are called without any problem.
I couldn't find this bug in the list of known bugs, so you may want to
have the code to investigate the problem. If so let me know. I did not
include it in this mail for the code should not be released yet : my
school still did not give the official agreement, but as they agree on
the principle of letting the program become a free software, I don't
think there will be any problem until the code remains inside the g++
developping team.
Benoit Steiner
Videolan project manager
http://videolan.via.ecp.fr
More information about the Gcc-bugs
mailing list