jjc@UUNET.UU.NET (James Clark) (05/11/89)
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.uucptiemann@YAHI.STANFORD.EDU (Michael Tiemann) (05/11/89)
I fixed that bug. Michael