🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #247

Re: I think there is a bug in finish_file()

#247
From: Mike Stump
Date: Mon, 13 Apr 1992 19:46
46 lines
1840 bytes
This bug should be fixed in the next version of gcc.

> Date: Fri, 10 Apr 1992 22:04:15 -0500
> From: daney@mermaid.micro.umn.edu (Dave Daney)
> Message-Id: <199204110304.AA21383@mermaid.micro.umn.edu>
> To: bug-g++@prep.ai.mit.edu
> Subject: I think there is a bug in finish_file()

> Am I missing something?  Here is a file that I tried to compile with gcc 2.1
> --------------------<cut here>-------------------------------
> //
> //
> //  Why does this program cause cc1plus 2.1 to segmentation fault??
> //
> //

> class testclass {
>   int len;

> public:
>   int length() { return len; };
>   
>   testclass(int l) {len = l; };
> };


> testclass test = testclass(5);

> int main(int argc, char *argv[])
> {
>   int j = test.length();

>   return 0;
> }

> --------------------------------------<cut here>-------------------
> I compile like this:


> Reading specs from /usr/gnu/lib/gcc-lib/sparc/2.1/specs
> gcc version 2.1
>  /usr/gnu/lib/gcc-lib/sparc/2.1/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix bug.cc /usr/tmp/cca26668.i
> GNU CPP version 2.1 (sparc)
>  /usr/gnu/lib/gcc-lib/sparc/2.1/cc1plus /usr/tmp/cca26668.i -quiet -dumpbase bug.cc -version -o /usr/tmp/cca26668.s
> GNU C++ version 2.1 (sparc) compiled by GNU C version 2.1.
> gcc: Internal compiler error: program cc1plus got fatal signal 11
Technical Details
Message-ID: <9204131946.AA25662@cygnus.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cygnus.com!mrs

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cygnus.com!mrs
From: mrs@cygnus.com (Mike Stump)
Subject: Re:  I think there is a bug in finish_file()
Message-ID: <9204131946.AA25662@cygnus.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 13 Apr 1992 19:46:30 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 47