parse.y (condition): Convert VAR_DECL from reference to indirect reference.
authorMartin v. Löwis <loewis@informatik.hu-berlin.de>
Sat, 24 Oct 1998 00:35:31 +0000 (00:35 +0000)
committerMartin v. Löwis <loewis@gcc.gnu.org>
Sat, 24 Oct 1998 00:35:31 +0000 (00:35 +0000)
* parse.y (condition): Convert VAR_DECL from reference to indirect
reference.

From-SVN: r23267

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

index ae7eb528b942b8d98ad1d32434b244c2c0e0d97b..ad0a6029a745e80704e3f064230eb90fe471bc98 100644 (file)
@@ -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
index 025b81327af933479b220e197401eb1ed7e28cea..4ce7d5b799a0adf7ad0334924cc3089769945358 100644 (file)
@@ -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", $$); 
                }