diff options
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r-- | gcc/cp/method.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 4d28c20..31b02be 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -2065,6 +2065,7 @@ make_thunk (function, delta, vcall_index) = vcall_index * int_size_in_bytes (vtable_entry_type); DECL_EXTERNAL (thunk) = 1; DECL_ARTIFICIAL (thunk) = 1; + DECL_CONTEXT (thunk) = DECL_CONTEXT (func_decl); /* So that finish_file can write out any thunks that need to be: */ pushdecl_top_level (thunk); } |