This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug Report: Illegal Instruction
- To: Alexandre Oliva <aoliva at cygnus dot com>
- Subject: Re: Bug Report: Illegal Instruction
- From: Bill <billl at unm dot edu>
- Date: Tue, 23 May 2000 16:49:00 -0600 (MDT)
- cc: gcc-bugs at gcc dot gnu dot org
On 23 May 2000, Alexandre Oliva wrote:
> I am receiving an "illegal instruction" error during run time. The
> error occurs in a switch statement that involves formatted output to
> cout.
Could it be a buffer overflow problem?
I do not consider myself a buffer-knowledgable person, but I don't
think its a buffer overflow problem.
A bit before the error, my code does an "endl" and the previous line
is put out to the screen; I think this would clear the buffer. The
very next output is a "cout << temp;" where "temp" is a three
character string. The error occurs when I finally output the first
space in a for-loop (i.e., "cout << " ";); the for-loop prints at most
10 spaces.
Bill