This is the mail archive of the
mailing list for the GCC project.
Re: C++ PATCH to emit_tinfo_decl
Richard Henderson wrote:
> On Thu, May 16, 2002 at 07:37:42PM +0100, Nathan Sidwell wrote:
> > the sizeof the typeid struct for T depends on whether T has
> > no bases, one single non-virtual base, or is more complicated.
> In which case, it ought to be incomplete itself, correct?
> IIRC, incomplete types have size zero, and small data opts
> are supposed to ignore those. Fibbing with size 8 is surely
> the worst thing that can be done.
You are probably right, I know what I did seemed sensible at the
time, but I can't recall the full logic of why. It had to do with
accessing fields of an object that later turned out to have a
different type, but I may have been confused (I am now :)
Jason, I'll try and work out what I was thinking, and whether it
can be changed.
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
firstname.lastname@example.org : http://www.cs.bris.ac.uk/~nathan/ : email@example.com