On 01/23/12 18:34, Patrick Marlier wrote:
Hi,

In this PR51928, it tries to look_for_tm_attr_overrides on a thunk but
there is no DECL_NAME for thunk. So it fails in
lookup_fnfields_idx_nolazy because name is NULL.

#0 0x0000000000764b5a in lookup_fnfields_idx_nolazy
(type=0x7ffff69f77e0, name=0x0) at ../../trunk/gcc/cp/search.c:1384
#1 0x000000000076551a in lookup_fnfields_1 (type=0x7ffff69f77e0,
name=0x0) at ../../trunk/gcc/cp/search.c:1470
#2 0x000000000076886e in look_for_overrides_here (type=0x7ffff69f77e0,
fndecl=0x7ffff69f8800) at ../../trunk/gcc/cp/search.c:2026
#3 0x0000000000635a94 in look_for_tm_attr_overrides
(type=0x7ffff6a091f8, fndecl=0x7ffff69f8800) at
../../trunk/gcc/cp/class.c:4337

I hope the good way to solve this is to use the THUNK_TARGET instead of
the thunk itself. (or just ignore when it is a thunk?)

Tested on x86_64-unknown-linux-gnu.
Thanks.
--
Patrick Marlier.

I can commit for you, but the testcase is missing, though the changelog entry for it is there.

Reply via email to