From: Iain Sandoe Date: Wed, 25 Mar 2020 12:04:58 +0000 (+0000) Subject: coroutines: Fix missing dereference (PR94319). X-Git-Tag: upstream/12.2.0~17656 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83dfa06cb5cff143113cb7d632c90a40edefade8;p=platform%2Fupstream%2Fgcc.git coroutines: Fix missing dereference (PR94319). Fix a typo. gcc/cp/ChangeLog: 2020-03-25 Iain Sandoe PR c++/94319 * coroutines.cc (captures_temporary): Fix a missing dereference. --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4332b07..d9f87ec 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2020-03-25 Iain Sandoe + + PR c++/94319 + * coroutines.cc (captures_temporary): Fix a missing dereference. + 2020-03-24 Marek Polacek PR c++/94190 - wrong no post-decrement operator error in template. diff --git a/gcc/cp/coroutines.cc b/gcc/cp/coroutines.cc index a943ba0..ef1ce15 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; }