From f18a14bcc121ed9812ecba53b3a458ed3d16953f Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Thu, 26 Aug 1999 04:19:52 +0000 Subject: decl.c (grokdeclarator): Amend comment. * decl.c (grokdeclarator): Amend comment. * except.c (expand_start_catch_block): Call push_template_decl for catch-block parameters. * method.c (synthesize_method): Build an empty compound statement for the body of a constructor. From-SVN: r28888 --- gcc/cp/method.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gcc/cp/method.c') 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); -- cgit v1.1