compiler error

Patrick T Dixon pdixon@cs.und.edu
Mon Mar 27 20:46:00 GMT 2000


---------- Forwarded message ----------
Date: Mon, 27 Mar 2000 22:44:45 -0600 (CST)
From: Patrick T Dixon <pdixon@cs.und.edu>
To: bug-gcc@gnu.org

redhat 6.0

333 dell

egcs-2.91.66



#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>


void main ()
{
  int size = 320;
  int page[size];
  char current;
  int *cursor;
  cursor = &page[0];

  while (current != size)
    {
      current = getchar();
      if (current == ':')
	{
	  putchar (current);
	 
	 
	}
      else
	{
	  *cursor = current;
	  cursor++;
	}
    }
  putchar (current);
  
}

<penguin-18:~>$ compilec editor
editor.c: In function `int main(...)':
editor.c:31: Internal compiler error.
editor.c:31: Please submit a full bug report.
editor.c:31: See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport >
for instructions.


<penguin-18:~>$ more bin/compilec 
#
# Usage: compile filename
#
# Notes:
# 1) .cpp extension not required.
# 2) Optimization turned on (-O2).
# 3) Math library linked in (-lm).
# 4) Output filename is same as source.
#
g++ -O2 $1.c -lm -o $1






More information about the Gcc-bugs mailing list