diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2021-10-03 19:46:09 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2021-12-17 16:56:53 +0000 |
commit | 921942a8a106cb53994c21162922e4934eb3a3e0 (patch) | |
tree | 81ba0d1396ae007d77c2af44f7afcd296f440852 /gcc/config.gcc | |
parent | 39d2ec41509e3b0d130215a65d7aacbd064b5532 (diff) | |
download | gcc-921942a8a106cb53994c21162922e4934eb3a3e0.zip gcc-921942a8a106cb53994c21162922e4934eb3a3e0.tar.gz gcc-921942a8a106cb53994c21162922e4934eb3a3e0.tar.bz2 |
coroutines: Pass lvalues to user-defined operator new [PR 100772].
The wording of the standard has been clarified to be explicit that
the the parameters to any user-defined operator-new in the promise
class should be lvalues.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
PR c++/100772
gcc/cp/ChangeLog:
* coroutines.cc (morph_fn_to_coro): Convert function parms
from reference before constructing any operator-new args
list.
gcc/testsuite/ChangeLog:
* g++.dg/coroutines/pr100772-a.C: New test.
* g++.dg/coroutines/pr100772-b.C: New test.
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions