This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: No definition of virtual function, omits inline and virtualtable
- To: "James F. Carter" <jimc at math dot ucla dot edu>
- Subject: Re: No definition of virtual function, omits inline and virtualtable
- From: Peter Osterlund <peter dot osterlund at mailbox dot swipnet dot se>
- Date: Wed, 27 Sep 2000 22:36:42 +0200 (CEST)
- cc: gcc-bugs at gcc dot gnu dot org
On Wed, 27 Sep 2000, James F. Carter wrote:
: But the point is, that compilation unit was botched. As you say, the
: program as a whole was malformed, and could not have executed (at best
: getting an undefined symbol at link time), but the missing virtual function
: *could* have been defined in a different compilation unit and linked
: in. That should be legal, but no inline bodies or virtual table would have
: been generated.
In what way was the compilation unit botched? The errors I got was during
linking, not during compilation. The file compiles but does not link, so
your test case does not demonstrate any compiler bug.
--
Peter Österlund Email: peter.osterlund@mailbox.swipnet.se
Sköndalsvägen 35 f90-pos@nada.kth.se
S-128 66 Sköndal Home page: http://home1.swipnet.se/~w-15919
Sweden Phone: +46 8 942647