🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Andrea Casotto Fri, 19 May 1989 17:55
Failed assertion TREE_CODE (field) == FIELD_DECL at line 4191 of `cplus-class.c'.
#2017
Author: Andrea Casotto
Date: Fri, 19 May 1989 17:55
36 lines
1205 bytes
With version 1.35.0 on a VAX running ULTRIX 3.0.
This is the example.

----------------------------
class X {
    int a;
public:
    virtual char* getName() { return "X:a";};
};

class Y : public X {
    int gg;
public:
    char* getName() { return "Y:sss"; }
};
main()
{
    X x;
    Y y;
    
    char* ny = y.getName ;	// missing parenthesis due to distraction
    // char* ny = y.getName() ;	// this is what it should be 
    char* nx = x.getName() ;
}
-------------------------------------------
This is what I get:

g++ foo.cc
Failed assertion TREE_CODE (field) == FIELD_DECL at line 4191 of `cplus-class.c'.
g++: Program cc1plus got fatal signal 4.


------------------------------------------

		Ciao, Andrea
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