coroutines: Handle component_ref in captures_temporary
authorJunMa <JunMa@linux.alibaba.com>
Tue, 11 Feb 2020 08:01:08 +0000 (16:01 +0800)
committerJunMa <JunMa@linux.alibaba.com>
Wed, 4 Mar 2020 01:08:37 +0000 (09:08 +0800)
commit7f327e8765c25552a1a6ae7d8747f74786f243dd
treeab2c915a426775274fcd03f91a690721d686fdb7
parentc46da87b9d35f709dea8d569cdb9a23dec8a4c04
coroutines: Handle component_ref in captures_temporary

gcc/cp
        * coroutines.cc (captures_temporary): Strip component_ref
        to its base object.

gcc/testsuite
        * g++.dg/coroutines/torture/co-await-15-capture-comp-ref.C: New test.
gcc/cp/ChangeLog
gcc/cp/coroutines.cc
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/coroutines/torture/co-await-15-capture-comp-ref.C [new file with mode: 0644]