aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r--gcc/cp/method.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index ea76855..e39da7e 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -2386,7 +2386,13 @@ synthesize_method (fndecl)
if (arg_chain != void_list_node)
do_build_copy_constructor (fndecl);
else if (TYPE_NEEDS_CONSTRUCTING (current_class_type))
- setup_vtbl_ptr ();
+ {
+ tree compound_stmt;
+
+ setup_vtbl_ptr ();
+ compound_stmt = begin_compound_stmt (/*has_no_scope=*/0);
+ finish_compound_stmt (/*has_no_scope=*/0, compound_stmt);
+ }
}
finish_function (lineno, 0, nested);