Commit ef76081a by Jason Merrill Committed by Jason Merrill

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
parent b244d07c
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> Tue Mar 17 14:44:54 1998 Mark Mitchell <mmitchell@usa.net>
* typeck2.c (build_x_arrow): Don't crash when an aggregate type * typeck2.c (build_x_arrow): Don't crash when an aggregate type
......
...@@ -2091,7 +2091,8 @@ nomods_initdcl0: ...@@ -2091,7 +2091,8 @@ nomods_initdcl0:
{} {}
| constructor_declarator maybeasm maybe_attribute | constructor_declarator maybeasm maybe_attribute
{ tree d; { 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 /* the * rules are dummies to accept the Apollo extended syntax
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment