[C++20] [Coroutines] Conform the updates for CWG issue 2585
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Mon, 23 May 2022 07:23:00 +0000 (15:23 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Mon, 23 May 2022 07:49:17 +0000 (15:49 +0800)
commit1b89a25a9b960886e486eb20b755634613c088f8
treedee33b23e1023ed550f58264e025fdf30c13b9aa
parent5e9be93566f39ee6cecd579401e453eccfbe81e5
[C++20] [Coroutines] Conform the updates for CWG issue 2585

According to the updates in CWG issue 2585
https://cplusplus.github.io/CWG/issues/2585.html, we shouldn't find an
allocation function with (size, p0, …, pn) in global scope.
clang/lib/Sema/SemaCoroutine.cpp
clang/test/SemaCXX/coroutine-allocs2.cpp [new file with mode: 0644]