🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1014

WRONG LIST (was: Re: Internal compiler error with g++ 2.2.2)

#1014
From: 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.  
Technical Details
Message-ID: <9208291226.AA28324@cygnus.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cygnus.com!mrs

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cygnus.com!mrs
From: mrs@cygnus.com (Mike Stump)
Subject: WRONG LIST (was: Re:  Internal compiler error with g++ 2.2.2)
Message-ID: <9208291226.AA28324@cygnus.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sat, 29 Aug 1992 12:26:18 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 46