coroutines: Fix missing dereference (PR94319).
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 25 Mar 2020 12:04:58 +0000 (12:04 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Wed, 25 Mar 2020 12:35:56 +0000 (12:35 +0000)
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.

gcc/cp/ChangeLog
gcc/cp/coroutines.cc

index 4332b07cc5f771ba48bdd4ae324df57a368097bd..d9f87eca64932569087ea1e4f93def8a4be1e5f6 100644 (file)
@@ -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.
index a943ba01de6363eafb2ecea662c69a9c00bf236d..ef1ce150680b19b6cfe8a0506bcc15686544c685 100644 (file)
@@ -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;
 }