🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Crash bug with 2.3.1

#1232
From: Jordan K. Hubbard
Date: Sun, 22 Nov 1992 17:01
30 lines
1419 bytes
The following C++ program will crash gcc 2.3.1:

class fred {
	int i;
};

main()
{
	fred *fp;

	fp = new fred[100]();
}

Removing the empty constructor argument list from the above will eliminate
the crash.  I.E.

	fp = new fred[100];

Crash details:

jkh@whisker-> g++ -v crash.cc -o crash
Reading specs from /usr/gnu/lib/gcc-lib/i386--bsd/2.3.1/specs
gcc version 2.3.1
 /usr/gnu/lib/gcc-lib/i386--bsd/2.3.1/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dunix -Di386 -D__386BSD__ -D__unix__ -D__i386__ -D__386BSD__ -D__unix -D__i386 -D__386BSD__ crash.cc /var/tmp/cc001269.i
GNU CPP version 2.3.1 (80386, BSD syntax)
 /usr/gnu/lib/gcc-lib/i386--bsd/2.3.1/cc1plus /var/tmp/cc001269.i -quiet -dumpbase crash.cc -version -o /var/tmp/cc001269.s
GNU C++ version 2.3.1 (80386, BSD syntax) compiled by GNU C version 2.3.1.
crash.cc: In function `int  main ()':
crash.cc:9: Internal compiler error 40.
crash.cc:9: Please report this to `bug-g++@prep.ai.mit.edu'.
Technical Details
Message-ID: <JKH.92Nov22170157@whisker.lotus.ie>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!whisker.lotus.IE!jkh

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!whisker.lotus.IE!jkh
From: jkh@whisker.lotus.IE (Jordan K. Hubbard)
Subject: Crash bug with 2.3.1
Message-ID: <JKH.92Nov22170157@whisker.lotus.ie>
Sender: gnulists@ai.mit.edu
Organization: Lotus Development Ireland
Distribution: gnu
Date: Sun, 22 Nov 1992 17:01:57 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 31