🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Mark Hanson Tue, 15 Sep 1992 04:25
bug in gcc-2.2.2 (g++)
#1145
Author: Mark Hanson
Date: Tue, 15 Sep 1992 04:25
30 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads