This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug Report: Illegal Instruction


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]