[gcc(refs/vendors/redhat/heads/gcc-10-branch)] coroutines: Fix missing dereference (PR94319).

Jakub Jelinek jakub@gcc.gnu.org
Sat Mar 28 09:39:20 GMT 2020


https://gcc.gnu.org/g:83dfa06cb5cff143113cb7d632c90a40edefade8

commit 83dfa06cb5cff143113cb7d632c90a40edefade8
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Wed Mar 25 12:04:58 2020 +0000

    coroutines: Fix missing dereference (PR94319).
    
    Fix a typo.
    
    gcc/cp/ChangeLog:
    
    2020-03-25  Iain Sandoe  <iain@sandoe.co.uk>
    
            PR c++/94319
            * coroutines.cc (captures_temporary): Fix a missing dereference.

Diff:
---
 gcc/cp/ChangeLog     | 5 +++++
 gcc/cp/coroutines.cc | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 4332b07cc5f..d9f87eca649 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2020-03-25  Iain Sandoe  <iain@sandoe.co.uk>
+
+	PR c++/94319
+	* coroutines.cc (captures_temporary): Fix a missing dereference.
+
 2020-03-24  Marek Polacek  <polacek@redhat.com>
 
 	PR c++/94190 - wrong no post-decrement operator error in template.
diff --git a/gcc/cp/coroutines.cc b/gcc/cp/coroutines.cc
index a943ba01de6..ef1ce150680 100644
--- a/gcc/cp/coroutines.cc
+++ b/gcc/cp/coroutines.cc
@@ -2651,7 +2651,7 @@ captures_temporary (tree *stmt, int *do_subtree, void *d)
     }
   /* As far as it's necessary, we've walked the subtrees of the call
      expr.  */
-  do_subtree = 0;
+  *do_subtree = 0;
   return NULL_TREE;
 }


More information about the Gcc-cvs mailing list