[Frontend] [Coroutines] Emit error when we found incompatible allocation
function in promise_type According to https://cplusplus.github.io/CWG/issues/2585.html, this fixes https://github.com/llvm/llvm-project/issues/54881 Simply, the clang tried to found (do lookup and overload resolution. Is there any better word to use than found?) allocation function in promise_type and global scope. However, this is not consistent with the standard. The standard behavior would be that the compiler shouldn't lookup in global scope in case we lookup the allocation function name in promise_type. In other words, the program is ill-formed if there is incompatible allocation function in promise type. Reviewed By: erichkeane Differential Revision: https://reviews.llvm.org/D125517
parent
ed2c3218
Please register or sign in to comment