[PATCH] D48863: [Sema] Explain coroutine_traits template in diag

Gor Nishanov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 3 15:42:22 PDT 2018


GorNishanov added inline comments.


================
Comment at: include/clang/Basic/DiagnosticSemaKinds.td:9053
   "a coroutine">;
+def note_coroutine_types_for_traits_here : Note<
+  "the coroutine traits class template is being instantiated using the return "
----------------
I am wondering what is the use case here.
Is it to guard against badly designed standard library?

I played around a little and tried to see how I could get to trigger this error with a user-code, but, failed. If I did not specify enough parameters it will default to primary template defined in the <experimental/coroutine>


Repository:
  rC Clang

https://reviews.llvm.org/D48863





More information about the cfe-commits mailing list