| Issue |
52847
|
| Summary |
[coroutine] Clang fails to compile when promise type doesn't have return_void
|
| Labels |
|
| Assignees |
|
| Reporter |
debashish-ghosh
|
In [this](https://godbolt.org/z/5f744nbbc) code, when the control reaches the end of the coroutine, it should be able to call `promise_type::return_void()`. If the method is not defined, then it is UB. When control doesn't reach the end of coroutine, then the behaviour is well-defined (which is the case here). **Clang fails to compile this**.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs