aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2023-03-15 17:02:15 -0400
committerJason Merrill <jason@redhat.com>2023-03-16 07:58:30 -0400
commitd0ed0690f1e86621a5cb62eec1d144036feb16f8 (patch)
treea3b71fc7d8d1f8039392fe63d97e6d06d7f2a5b8 /gcc/gcc.cc
parent46c4be98d1e759a406069487e5dbaad0346e7e7d (diff)
downloadgcc-d0ed0690f1e86621a5cb62eec1d144036feb16f8.zip
gcc-d0ed0690f1e86621a5cb62eec1d144036feb16f8.tar.gz
gcc-d0ed0690f1e86621a5cb62eec1d144036feb16f8.tar.bz2
c++: co_await and move-only type [PR105406]
Here we were building a temporary MoveOnlyAwaitable to hold the result of evaluating 'o', but since 'o' is an lvalue we should build a reference instead. PR c++/105406 gcc/cp/ChangeLog: * coroutines.cc (build_co_await): Handle lvalue 'o'. gcc/testsuite/ChangeLog: * g++.dg/coroutines/co-await-moveonly1.C: New test.
Diffstat (limited to 'gcc/gcc.cc')
0 files changed, 0 insertions, 0 deletions