This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: No definition of virtual function, omits inline and virtualtable


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]