coroutines: Fix STRIP_NOPS usage.
authorMarek Polacek <polacek@redhat.com>
Mon, 20 Apr 2020 17:37:35 +0000 (13:37 -0400)
committerMarek Polacek <polacek@redhat.com>
Mon, 20 Apr 2020 19:19:16 +0000 (15:19 -0400)
commitc5e4be6b3645fb2294296310a3705f8be0e75da8
tree4b9fda31076b67fb56a3e99201ac94c1f92ebd46
parent582fe481f4bb800f822035b8a17000d0efaecef4
coroutines: Fix STRIP_NOPS usage.

parm = STRIP_NOPS (parm); is unnecessary and generates
warning: operation on 'parm' may be undefined [-Wsequence-point]
when cp/coroutines.cc is compiled with -std=c++11.

* coroutines.cc (captures_temporary): Don't assign the result of
STRIP_NOPS to the same variable.
gcc/cp/ChangeLog
gcc/cp/coroutines.cc