diff options
author | JunMa <JunMa@linux.alibaba.com> | 2020-01-21 18:18:09 +0800 |
---|---|---|
committer | JunMa <JunMa@linux.alibaba.com> | 2020-02-05 08:54:46 +0800 |
commit | 3ef39186b61939da7c658561b97f04b62973bf92 (patch) | |
tree | 5766772318711e97df9aabf30eabd54e9ac9b609 /gcc/omp-simd-clone.c | |
parent | 81d73774ed6ee26876052c8cb915e73152ffca3a (diff) | |
download | gcc-3ef39186b61939da7c658561b97f04b62973bf92.zip gcc-3ef39186b61939da7c658561b97f04b62973bf92.tar.gz gcc-3ef39186b61939da7c658561b97f04b62973bf92.tar.bz2 |
Handle type deduction of auto and decltype(auto) with reference expression
gcc/cp
* coroutines.cc (build_co_await): Call convert_from_reference
to wrap co_await_expr with indirect_ref which avoid
reference/non-reference type confusion.
(co_await_expander): Sink to call_expr if await_resume
is wrapped by indirect_ref.
gcc/testsuite
* g++.dg/coroutines/co-await-14-return-ref-to-auto.C: New test.
Diffstat (limited to 'gcc/omp-simd-clone.c')
0 files changed, 0 insertions, 0 deletions