parse.y (nomods_initdcl0): Also call cp_finish_decl for a constructor_declarator.
authorJason Merrill <jason@yorick.cygnus.com>
Wed, 18 Mar 1998 00:31:01 +0000 (00:31 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 18 Mar 1998 00:31:01 +0000 (19:31 -0500)
* parse.y (nomods_initdcl0): Also call cp_finish_decl for a
constructor_declarator.

From-SVN: r18650

gcc/cp/ChangeLog
gcc/cp/parse.y

index 2882a29877427ac626ad450c00f0a4d9cf97f8a4..ec69afe5f110f0cd7b860526760035a7a51a2676 100644 (file)
@@ -1,3 +1,8 @@
+Wed Mar 18 00:24:10 1998  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * parse.y (nomods_initdcl0): Also call cp_finish_decl for a 
+       constructor_declarator.
+
 Tue Mar 17 14:44:54 1998  Mark Mitchell  <mmitchell@usa.net>
 
        * typeck2.c (build_x_arrow): Don't crash when an aggregate type
index 5d8dc28a8044d79585257462eeb45024256226d7..d159fcd95131687cfb4073a7a255537bddb10394 100644 (file)
@@ -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