diff options
author | Paul Eggert <eggert@twinsun.com> | 2002-04-30 16:11:44 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2002-04-30 12:11:44 -0400 |
commit | e6e81f1c95ed341bfb04f69fee3fc0a6aa1208e5 (patch) | |
tree | 58340a548fcf0680b93639e176f1175eef697c7e | |
parent | 3193c4158643cc5739a73cb6df24b82844b2ae80 (diff) | |
download | gcc-e6e81f1c95ed341bfb04f69fee3fc0a6aa1208e5.zip gcc-e6e81f1c95ed341bfb04f69fee3fc0a6aa1208e5.tar.gz gcc-e6e81f1c95ed341bfb04f69fee3fc0a6aa1208e5.tar.bz2 |
* parse.y (nomods_initdcl0): Replace $<ttype>3 with $<ttype>$.
From-SVN: r52948
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/parse.y | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b74e4fd..3ef996bf 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,7 +1,6 @@ -2002-04-30 Paul Eggert <eggert@twinsun.com> +2002-04-29 Paul Eggert <eggert@twinsun.com> - * parse.y (nomods_initdcl0): Do not move stack entries - when setting things up as initdcl0_innards expects. + * parse.y (nomods_initdcl0): Replace $<ttype>3 with $<ttype>$. 2002-04-29 Jakub Jelinek <jakub@redhat.com> diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index 2bf6e1d..0754910 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -2147,10 +2147,12 @@ notype_initdcl0: ; nomods_initdcl0: - { /* Set things up as initdcl0_innards expects. */ - $<ftype>$.t = NULL_TREE; - $<ftype>$.lookups = NULL_TREE; } notype_declarator maybeasm + { /* Set things up as initdcl0_innards expects. */ + $<ttype>$ = $2; + $2 = $1; + $<ftype>1.t = NULL_TREE; + $<ftype>1.lookups = NULL_TREE; } initdcl0_innards {} | constructor_declarator maybeasm maybe_attribute |