🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #1079

IV 2.6, g++ 1.37, and Ultrix 4.0.3

#1079
From: Scott E. Johnston
Date: Mon, 06 May 1991 20:50
31 lines
1552 bytes
I am looking for patches to g++ 1.37 that will allow me to compile
InterViews 2.6 on a DecStation running Ultrix 4.0.3.  Currently I am
having trouble compiling the following method in streditor.c:  

void StringEditor::Message (const char* t) {
    text->Delete(text->BeginningOfText(), text->Length());
    text->Insert(0, t, strlen(t));
    int bol = text->BeginningOfLine(0);
    int eol = text->EndOfLine(0);
    display->Draw(output, canvas);
    display->ReplaceText(0, text->Text(bol, eol), eol - bol);
    Select(eol);
}

gcc-cc1plus seg faults at the last brace in the method.  The fault
disappears if I remove the method, and follows the method if I move it
around in the source file.  Any suggestions?

Scott E. Johnston
Advanced Decision Systems
Mt. View, CA  94043

P.S.  When I run gdb on gcc-cc1plus, the fault occurs on the following
line of sdbout.c:

sdbout.c, line 693-694:
      /* Ok, start a symtab entry and output the variable name.  */
      PUT_SDB_DEF (IDENTIFIER_POINTER (DECL_NAME (decl)));

The pointer to the name node of a declaration node is nil, so the
IDENTIFIER_POINTER macro seg faults.
Technical Details
Message-ID: <X7&*K0+@ads.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uakari.primate.wisc.edu!sdd.hp.com!decwrl!ads.com!johnston

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uakari.primate.wisc.edu!sdd.hp.com!decwrl!ads.com!johnston
From: johnston@ADS.COM (Scott E. Johnston)
Newsgroups: comp.windows.interviews
Subject: IV 2.6, g++ 1.37, and Ultrix 4.0.3
Message-ID: <X7&*K0+@ads.com>
Date: 6 May 91 20:50:33 GMT
Sender: usenet@ads.com (USENET News)
Organization: Advanced Decision Systems
Lines: 31