egcs 1.1 980726 is broken on linux/alpha

H.J. Lu hjl@lucon.org
Tue Jul 28 21:34:00 GMT 1998


On Linux/alpha, egcs 1.1 980728 got

# gcc bar.cc
/tmp/ccIDKCHw.o: In function `global constructors keyed to main':
bar.cc(.text+0xc0): undefined reference to `A::f(void)'
collect2: ld returned 1 exit status

Linux/x86 is ok. It looks like C++ is broken on linux/alpha. It seems
like a typo kind of bug since this is a very basic C++ program.


-- 
H.J. Lu (hjl@gnu.org)
---bar.c---
struct A
{
  virtual void f() = 0;
};
struct B : A
{
  void f() {}
};

int main() { B b; return 0; }



More information about the Gcc mailing list