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.
This commit is contained in:
Iain Sandoe 2020-03-25 12:04:58 +00:00
parent 68c4570a4d
commit 83dfa06cb5
2 changed files with 6 additions and 1 deletions

View 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.

View 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;
}