🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by James Clark Thu, 11 May 1989 08:50
1.35.0- MI
#1978
Author: James Clark
Date: Thu, 11 May 1989 08:50
47 lines
1590 bytes
I'm trying to get started with MI with 1.35.0-.

I tried this:

Script started on Wed May 10 22:06:08 1989
jclark% cat test.c
// -*- C++ -*-

#include <stdio.h>

struct A {
  virtual void foo() { fputs("A::foo()\n", stderr); }
};

struct B {
  virtual void bar() { fputs("B::bar()\n", stderr); }
};

struct C : A, B {
};

main()
{
  C *p = new C;
  p->foo();
  p->bar();
}
jclark% /u/local/g++/g++ -B/u/local/g++/ -g -v -I. -o test test.c
g++ version 1.35.0-
 /usr/local/lib/gcc-cpp -+ -v -I. -undef -D__GNU__ -D__GNUG__ -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ test.c /tmp/cca23024.cpp
GNU CPP version 1.35
 /u/local/g++/cc1plus /tmp/cca23024.cpp -quiet -dumpbase test.c -noreg -version -G -o /tmp/cca23024.s
GNU C++ version 1.35.0- (sparc) compiled by GNU C version 1.35.
 as /tmp/cca23024.s -o test.o
 /u/local/g++/ld++ -o test -C -C /u/local/g++/crt0+.o test.o -lg++ /usr/local/lib/gcc-gnulib -lg -lc
jclark% test
A::foo()
A::foo()
jclark% exit
jclark% 
script done on Wed May 10 22:06:39 1989

Is this a bug or am I just ignorant?  I wonder whether some kind
person might care to post a brief description of how MI works in G++.

James Clark
jjc@jclark.uucp
1.35.0- MI
#1981
Author: Michael Tiemann
Date: Thu, 11 May 1989 13:11
3 lines
494 bytes
I fixed that bug.

Michael
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