From 3a2cbef7a415d749b7be475ae023a1992d6b8ec9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 24 Oct 1998 00:35:31 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/parse.y | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ae7eb528b94..ad0a6029a74 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1998-10-23 Martin von Löwis + + * parse.y (condition): Convert VAR_DECL from reference to indirect + reference. + 1998-10-23 Andrew MacLeod * exception.cc (__cp_pop_exception): Free the original exception diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index 025b81327af..4ce7d5b799a 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -1021,7 +1021,7 @@ condition: { cp_finish_decl ($6, $7, $4, 1, LOOKUP_ONLYCONVERTING); resume_momentary ($5); - $$ = $6; + $$ = convert_from_reference ($6); if (TREE_CODE (TREE_TYPE ($$)) == ARRAY_TYPE) cp_error ("definition of array `%#D' in condition", $$); } -- 2.30.2