Article View: gnu.gcc.bug
Article #1145bug in gcc-2.2.2 (g++)
From: Mark Hanson
Date: Tue, 15 Sep 1992 04:25
Date: Tue, 15 Sep 1992 04:25
30 lines
1245 bytes
1245 bytes
// gcc bug squishers,
// The following short C++ file causes gcc to crash. I've played
// around with this file a bit, and it seems to me that the combination
// of the extern declaration and the virtual function is the culprit.
// (But, then again, what do I know?)
//
// I'm running SunOS 4.1.2 on a Sparc IPC.
// The version of gcc is 2.2.2.
//
// Good luck and thanks for the compiler!
// mark
//-----------------------------------------------------------------------------
// % cat foo.C
extern class foo;
class bar : public foo
{
public:
virtual draw();
};
// % g++ foo.C
// foo.C:9: base class `foo' has incomplete type
// /usr/local/bin/gcc: Internal compiler error: program cc1plus got fatal signal 11
// % gcc -v
// Reading specs from /usr/local/lib/gcc-lib/sparc-sun4-sunos4.1/2.2.2/specs
// gcc version 2.2.2
Technical Details
Message-ID:
<9209150425.AA01387@wind.UCSD.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!wind.ucsd.edu!cs62a12Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!wind.ucsd.edu!cs62a12 From: cs62a12@wind.ucsd.edu (Mark Hanson) Subject: bug in gcc-2.2.2 (g++) Message-ID: <9209150425.AA01387@wind.UCSD.EDU> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Tue, 15 Sep 1992 04:25:23 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 31