aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1998-03-18 00:31:01 +0000
committerJason Merrill <jason@gcc.gnu.org>1998-03-17 19:31:01 -0500
commitef76081acc174bd99638624f92297691c3d319e3 (patch)
tree919a0beaadec1cac5bb84f08e2f37c32ce85f3dd /gcc
parentb244d07c40af8f53181e1bd5f0bc26cc2716b273 (diff)
downloadgcc-ef76081acc174bd99638624f92297691c3d319e3.zip
gcc-ef76081acc174bd99638624f92297691c3d319e3.tar.gz
gcc-ef76081acc174bd99638624f92297691c3d319e3.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/parse.y3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 2882a29..ec69afe 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y
index 5d8dc28..d159fcd 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