diff options
| author | Mark Mitchell <mark@codesourcery.com> | 1999-08-26 04:19:52 +0000 |
|---|---|---|
| committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-08-26 04:19:52 +0000 |
| commit | f18a14bcc121ed9812ecba53b3a458ed3d16953f (patch) | |
| tree | c53bd3b828bb517a2846eccbd4ea66b2c560cc23 /gcc/cp/method.c | |
| parent | b06167fcc48be5a7b709cc031b5f6ab29c2c6d33 (diff) | |
| download | gcc-f18a14bcc121ed9812ecba53b3a458ed3d16953f.zip gcc-f18a14bcc121ed9812ecba53b3a458ed3d16953f.tar.gz gcc-f18a14bcc121ed9812ecba53b3a458ed3d16953f.tar.bz2 | |
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
Diffstat (limited to 'gcc/cp/method.c')
| -rw-r--r-- | gcc/cp/method.c | 8 |
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); |
