🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Mike Stump Sat, 29 Aug 1992 12:26
WRONG LIST (was: Re: Internal compiler error with g++ 2.2.2)
#1014
Author: Mike Stump
Date: Sat, 29 Aug 1992 12:26
45 lines
1855 bytes
In the future please report all g++ bugs to the
        bug-g++@prep.ai.mit.edu
list, thanks.  If they are back-end bugs, they can be reported here,
but please let us know if you think the problem is in the back-end.

You don't need to resubmit this one.

> Date: Thu, 6 Aug 92 20:23:17 edt
> From: Robert J.C. Kyanko <rjck!rob@ai.mit.edu>
> Message-Id: <2a81c276.rjck@rjck.UUCP>
> To: bug-gcc@prep.ai.mit.edu

> I have a small piece of code when compiled with g++, version 2.2.2, that will
> cause the compiler to say "Internal compiler error: program cc1plus got fatal
> signal 6".  Gcc was compiled for target "sparc-sun-sunos4.1" and run on a
> Sun SparcSystem 300.  I've got the code down to a bare minimum; eliminating
> almost anything causes this error to go away.  The code is as follows:

> 	char *chs;
> 	int t_value;
> 	char line[200];
> 	char *lptr;

> 	static int getch(void);

> 	static void getnumber(int ch)
> 	{
> 		while ((ch = getch()) != 0 && (chs+1)[ch]) {
> 			t_value = t_value * 10 + ch - '0';
> 		}
> 	}


> 	void parse_error()
> 	{
> 		char buf[200], *src, *dst;

> 		for (src = line, dst = buf, src < lptr; ++src)
> 			*dst++ = (*src == '\t' ? '\t' : ' ');
> 	}


> It's not much of a program, but it definately does cause g++ to abort.  The
> same code compiled with gcc does not cause this compiler error, just an error
> about the static getch() not defined anywhere in the source.  
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads