This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: C++ PATCH to emit_tinfo_decl


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


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