🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by chatty%FRLRI61.BITNET Fri, 08 Dec 1989 16:24
Failed assertion
#694
Author: chatty%FRLRI61.BITNET
Date: Fri, 08 Dec 1989 16:24
40 lines
1428 bytes
// The following code causes a failed assertion on sun3os4.
// It is g++ 1.26.2- with all (?) the patches posted Dec 5

class A {
public:
        int     s;

};

class B : public A {
};


class C : public B {
};


int
foo ()
{
        C c;
        return c.s;
}


// g++ -v -c a.cc
// g++ version 1.36.2- (based on GCC 1.36)
//  /usr/local/lib/GNU/cpp -+ -v -undef -D__GNUC__ -D__GNUG__ -D__cplusplus -Dmc
// -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 a.
// /usr/tmp/cca04511.cpp
// GNU CPP version 1.36
//  /usr/local/lib/GNU/cc1plus /usr/tmp/cca04511.cpp -quiet -dumpbase a.cc -vers
//  -o /usr/tmp/cca04511.s
// GNU C++ version 1.36.2- (based on GCC 1.36) (68k, MIT syntax) compiled by GNU
// version 1.36.
// default target switches: -m68020 -mc68020 -m68881 -mbitfield
// Failed assertion assoc != NULL_TREE at line 1282 of `cplus-typeck.c'.

// Stephane Chatty              chatty@lri.lri.fr
//                              chatty@frlri61.bitnet
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