diff options
author | Martin v. Löwis <loewis@informatik.hu-berlin.de> | 1998-10-24 00:35:31 +0000 |
---|---|---|
committer | Martin v. Löwis <loewis@gcc.gnu.org> | 1998-10-24 00:35:31 +0000 |
commit | 3a2cbef7a415d749b7be475ae023a1992d6b8ec9 (patch) | |
tree | f88f79ba234860474bb7037e36d7c69c13bb622f | |
parent | 8c368ee2188b8630efeab672d3bb9f2bfc61e922 (diff) | |
download | gcc-3a2cbef7a415d749b7be475ae023a1992d6b8ec9.zip gcc-3a2cbef7a415d749b7be475ae023a1992d6b8ec9.tar.gz gcc-3a2cbef7a415d749b7be475ae023a1992d6b8ec9.tar.bz2 |
parse.y (condition): Convert VAR_DECL from reference to indirect reference.
* parse.y (condition): Convert VAR_DECL from reference to indirect
reference.
From-SVN: r23267
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/parse.y | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ae7eb52..ad0a602 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1998-10-23 Martin von Löwis <loewis@informatik.hu-berlin.de> + + * parse.y (condition): Convert VAR_DECL from reference to indirect + reference. + 1998-10-23 Andrew MacLeod <amacleod@cygnus.com> * exception.cc (__cp_pop_exception): Free the original exception diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index 025b813..4ce7d5b 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -1021,7 +1021,7 @@ condition: { cp_finish_decl ($<ttype>6, $7, $4, 1, LOOKUP_ONLYCONVERTING); resume_momentary ($<itype>5); - $$ = $<ttype>6; + $$ = convert_from_reference ($<ttype>6); if (TREE_CODE (TREE_TYPE ($$)) == ARRAY_TYPE) cp_error ("definition of array `%#D' in condition", $$); } |