pure virtual functions bug in egcs
Felix von Leitner
leitner@amdiv.de
Tue Jul 7 03:15:00 GMT 1998
If I have to post this bug once a week until it is fixed, I will do so.
$ cat t.C
class bug {
public:
virtual void purevirtual()=0;
};
main() { }
$ egcc -v
Reading specs from /usr/lib/gcc-lib/alphaev56-unknown-linux-gnu/egcs-2.91.46/specs
gcc version egcs-2.91.46 19980707 (gcc2 ss-980609 experimental)
$ egcc -o t t.C
/tmp/ccCrhWJl%O: In function `global constructors keyed to main':
t.C(.text+0xa0): undefined reference to `bug::purevirtual(void)'
collect2: ld returned 1 exit status
$
I posted this bug at least four times now to various mailing lists, a
few times to this one, too. Am I the only one with this problem?!
egcs-1.0.3a does not have this problem.
Felix
More information about the Gcc-bugs
mailing list