🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Core dump now internal error

#1309
From: Jeff Gehlhaar
Date: Mon, 04 Jan 1993 02:19
55 lines
2064 bytes
// This program used to cause G++ to dump core.  It now causes an internal
// compiler error.

// All of this, both code and options, seem to be necessary to tickle
// the bug.  Don't ask _me_ why; I don't see how they are related....

// The result of ``g++ -v -c -O -g -funroll-loops bug006.cc'' is attached below.

// -- Greg

#include <iostream.h>
#define SHOW(x)    do { cout << x << endl; } while (0)

class List
{
public:
        List(void) { list = 0; }
        class List *list;
};

class Class
{
public:
        Class(char *param);
        List queue;
};

Class::Class(char *param)
{
        SHOW("Display some text");
}

/* Compiler output follows:
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/specs
gcc version 2.3.3
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/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 -D__OPTIMIZE__ -g bug006.cc
/usr/tmp/cca29841.i
GNU CPP version 2.3.3 (sparc)
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/cc1plus
/usr/tmp/cca29841.i -quiet -dumpbase bug006.cc -g -O -version
-funroll-loops -o /usr/tmp/cca29841.s
GNU C++ version 2.3.3 (sparc) compiled by CC.
bug006.cc: In method `Class::Class (char *)':
bug006.cc:31: Internal compiler error.
bug006.cc:31: Please report this to `bug-g++@prep.ai.mit.edu'.
Compiler output above */


======================================================
Jeff Gehlhaar           Qualcomm Inc,  
jbg@qualcomm.com        San Diego, CA, USA
(619) 597-5241          "The Elegant Solution...."
======================================================
Technical Details
Message-ID: <9301041718.AA17310@harvey>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!qualcomm.com!jbg

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!qualcomm.com!jbg
From: jbg@qualcomm.com (Jeff Gehlhaar)
Subject: Core dump now internal error
Message-ID: <9301041718.AA17310@harvey>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 4 Jan 1993 02:19:11 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 57