[comp.windows.interviews] IV 2.6, g++ 1.37, and Ultrix 4.0.3

johnston@ADS.COM (Scott E. Johnston) (05/07/91)

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.