Mail Archives: djgpp/1993/05/06/11:00:26
Sound advice. Unfortunately, it is irrelevant to the problem reported
by WKIM AT vms DOT cis DOT pitt DOT edu. According to the problem report, gcc hangs
when _compiling_ the program, and rearranging the code causes the
hang to go away. If any program, however legal or illegal, can cause
a compiler to hang or crash, then the compiler certainly has a bug.
- Ajay
$ > The previous code cannot be a wrong code, so gcc seems to have a bug.
$
$ It is certainly possible that [dj]gcc has a bug. However, it
$ if far more likely that your program has a bug. The fact that
$ rearranging code in one section changes the behavior of a program
$ is not unusual for a buggy program. In fact, it indicates to
$ me that you've got problems elsewhere that you just happened to
$ turn up with a lucky code fragment here.
$
$ Like I say, it COULD be gcc, but I'd suspect your code first. Look
$ around, check your pointers, etc.
$
$ rob
$
- Raw text -