From: Jason Merrill Date: Wed, 18 Mar 1998 00:31:01 +0000 (+0000) Subject: parse.y (nomods_initdcl0): Also call cp_finish_decl for a constructor_declarator. X-Git-Tag: prereleases/egcs-1.1-prerelease~2067 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ef76081acc174bd99638624f92297691c3d319e3;p=thirdparty%2Fgcc.git parse.y (nomods_initdcl0): Also call cp_finish_decl for a constructor_declarator. * parse.y (nomods_initdcl0): Also call cp_finish_decl for a constructor_declarator. From-SVN: r18650 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 2882a2987742..ec69afe5f110 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +Wed Mar 18 00:24:10 1998 Jason Merrill + + * parse.y (nomods_initdcl0): Also call cp_finish_decl for a + constructor_declarator. + Tue Mar 17 14:44:54 1998 Mark Mitchell * typeck2.c (build_x_arrow): Don't crash when an aggregate type diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index 5d8dc28a8044..d159fcd95131 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -2091,7 +2091,8 @@ nomods_initdcl0: {} | constructor_declarator maybeasm maybe_attribute { tree d; - parse_decl($1, NULL_TREE, $3, 0, &d); } + parse_decl($1, NULL_TREE, $3, 0, &d); + cp_finish_decl (d, NULL_TREE, $2, 1, 0); } ; /* the * rules are dummies to accept the Apollo extended syntax