[Bug c++/95540] [coroutine] coroutine_traits<> lookup for lambdas

bruck.michael at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Jun 5 18:52:52 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95540

--- Comment #5 from Michael Bruck <bruck.michael at gmail dot com> ---
> Since the coroutine traits are global, and the closure type is unique,
> that provides a way to disambiguate instantiations of the traits for
> lambdas with otherwise identical signatures.

But the closure type is generated in the same lambda expression where the
coroutine generator looks up the coroutine_traits<>. How do I specialize on
that?


More information about the Gcc-bugs mailing list