C++ PATCH to emit_tinfo_decl
Nathan Sidwell
nathan@codesourcery.com
Thu May 16 11:55:00 GMT 2002
Richard Henderson wrote:
> Can we just not lie about the size?
the difficulty, that I presume is causing the problems, is that the
it is necessary to refer to the (abi-defined) tinfo structure of an
incomplete class. Although in
typeid (A),
and
typeid (*ptr), // A *ptr;
A must be complete, it is not true that for
typeid (A *)
and
typeid (ptr)
that A need be complete. However the typeid struct for `pointer to T'
needs to point to the typeid struct for T (otherwise exception handling
breaks). the sizeof the typeid struct for T depends on whether T has
no bases, one single non-virtual base, or is more complicated.
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
More information about the Gcc-patches
mailing list