[PATCH] D33625: [coroutines] Diagnose invalid result types for `await_resume` and `await_suspend` and add missing conversions.

Gor Nishanov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun May 28 06:42:05 PDT 2017


GorNishanov accepted this revision.
GorNishanov added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: test/SemaCXX/coroutines.cpp:842
+struct bad_await_suspend_return {
+  bool await_ready();
+  // expected-error at +1 {{the return type of 'await_suspend' is required to be 'void' or 'bool' (have 'char')}}
----------------
For test completeness, I would have a positive case for something like a std::true_type returning await_ready


https://reviews.llvm.org/D33625





More information about the cfe-commits mailing list