aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2021-10-03 19:46:09 +0100
committerIain Sandoe <iain@sandoe.co.uk>2021-12-17 16:56:53 +0000
commit921942a8a106cb53994c21162922e4934eb3a3e0 (patch)
tree81ba0d1396ae007d77c2af44f7afcd296f440852 /gcc/config.gcc
parent39d2ec41509e3b0d130215a65d7aacbd064b5532 (diff)
downloadgcc-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