From bbb53468cc1f912add359fa97567f3b0b54476f8 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 12 Apr 2001 07:42:17 +0000 Subject: method.c (make_thunk): Clear DECL_CLONED_FUNCTION. cp: * method.c (make_thunk): Clear DECL_CLONED_FUNCTION. testsuite: * g++.old-deja/g++.other/crash40.C: New test. From-SVN: r41294 --- gcc/cp/method.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/cp/method.c') diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 2f89484..5839767 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -363,6 +363,8 @@ make_thunk (function, delta, vcall_index, generate_with_vtable_p) DECL_SAVED_FUNCTION_DATA (thunk) = NULL; DECL_DESTRUCTOR_P (thunk) = 0; DECL_CONSTRUCTOR_P (thunk) = 0; + /* And neither is it a clone. */ + DECL_CLONED_FUNCTION (thunk) = NULL_TREE; DECL_EXTERNAL (thunk) = 1; DECL_ARTIFICIAL (thunk) = 1; /* Even if this thunk is a member of a local class, we don't -- cgit v1.1