This is the mail archive of the
ecos-maintainers@sources.redhat.com
mailing list for the eCos project.
[APPROVE] __cxa_pure_virtual()
- From: Bart Veer <bartv at ecoscentric dot com>
- To: ecos-maintainers at sources dot redhat dot com
- Date: Thu, 27 Mar 2003 17:56:05 +0000 (GMT)
- Subject: [APPROVE] __cxa_pure_virtual()
I have just committed a patch to CYGPKG_INFRA to provide an
implementation of __cxa_pure_virtual() that is appropriate for eCos,
overriding the one in libsupc++.
http://sources.redhat.com/ml/ecos-patches/2003-03/msg00209.html
Without this patch any C++ code that uses pure virtual functions will
fail to link. The patch adds a single new function
__cxa_pure_virtual() which will never get called in normal operation,
but which does get referenced by the compiled C++ code. The only time
this function may get called is if the application calls a virtual
function while the object is still being created, which gives
undefined behaviour. Hence the risk is small.
Bart