Mail Archives: djgpp/2000/02/24/16:30:57
MM <mm AT netcom DOT ca> wrote:
> The file I've attached causes djgpp to kill the compiler and tell me to
> submit a full bug report. I would do so, but first I want to make sure
> this happens to others as well. If you could please take a look at the
> code and tell me what I'm doing wrong or if it shouldn't be done like
> that at all to begin with I'd greatly appreciate it.
> Thanks,
If gcc says to submit a bug report then that is by itself fair
confirmation that you have found a bug. ;-/ If you would like
confirmation from others then please give the exact compile line you
use, also say what version of gcc.
I have tried to replicate the problem, but all I get are compiler
errors about the code. The is with gcc 2.95.2, maybe you have an
older version and the bug is already fixed?
As to whether what you are doing is ok or not, well I get compile
errors so that should tell you something ;-) I don't understand what
you are trying to do, but I would point out that in C++ there are
better ways of doing some things that would require function pointers
in C. Maybe you want to investigate derived classes, function
overloading and virtual functions?
Of course, whether or not the code is legal, and whether or not the
style is Good, the compiler should not crash.
- Raw text -