diff options
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r-- | gcc/cp/method.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 5de20d4..bbbf59b 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -1765,7 +1765,7 @@ implicitly_declare_fn (special_function_kind kind, tree type, type = TYPE_MAIN_VARIANT (type); - if (targetm.cxx.cdtor_returns_this () && !TYPE_FOR_JAVA (type)) + if (targetm.cxx.cdtor_returns_this ()) { if (kind == sfk_destructor) /* See comment in check_special_function_return_type. */ |