PATCH Re: c++/4122: undefined reference to `non-virtual thunk to ...'

law@redhat.com law@redhat.com
Fri Dec 21 14:31:00 GMT 2001


> Thanks for the testcase; please give this a try.  The problem was that we
> had calculated the -4 offset for a lost primary, the primary base was
> regained in the constructor vtable, and so the calculated offset was
> wrong.
> 
> 2001-12-21  Jason Merrill  <jason@redhat.com>
> 
> 	* class.c (update_vtable_entry_for_fn): Set delta to zero for a
> 	lost primary.
> 
> 	* class.c (build_vtbl_initializer): Check for a lost primary
> 	before calculating the vtable entry to throw away.
Thanks.  

FWIW, I tried this on my testcases locally and it didn't make any noticable
difference (sid & ecosconfig).

There's still two distinct issues.

  1. Some thunks are being defined with local scope

  2. We are not calling assemble_external when we reference certain thunks.

I'll try to get you testcases for both these issues today.
jeff




More information about the Gcc-bugs mailing list