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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef76081acc174bd99638624f92297691c3d319e3;p=gcc.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 2882a298774..ec69afe5f11 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 5d8dc28a804..d159fcd9513 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