This is the mail archive of the
mailing list for the GCC project.
Re: some problem of virtual function.
- To: carlo at alinoe dot com, gcc at gcc dot gnu dot org, jacky at zh dot t2-design dot com
- Subject: Re: some problem of virtual function.
- From: dewar at gnat dot com
- Date: Sat, 26 May 2001 09:29:46 -0400 (EDT)
<<i have compiled the programe with 2.96, it work well.
so i am sure that the sources code are right.
YOu may well be right that this shows a bug in the compiler, but it is not
at all the case that the fact that it works with one compiler proves that
the "sources code are right". If you have an incorrect program with undefined
semantics (e.g. undefined variables), then it may well work on one compiler
and not on another, but the fault is not with the compiler, it is still with
the incorrect program.