Re: [PATCH] c++,coroutines: Lookup coroutine_handle template [PR120495].

2025-06-02 Thread Iain Sandoe
> On 2 Jun 2025, at 17:10, Andrew Pinski wrote: > > On Mon, Jun 2, 2025 at 8:17 AM Jason Merrill wrote: >> >> On 6/2/25 5:13 AM, Iain Sandoe wrote: >>> Tested on x86_64-darwin, OK for trunk? >>> thanks >>> Iain >>> >>> --- 8< --- >>> >>> Using lookup_template_class () directly on the corou

Re: [PATCH] c++, coroutines: Lookup coroutine_handle template [PR120495].

2025-06-02 Thread Andrew Pinski
On Mon, Jun 2, 2025 at 8:17 AM Jason Merrill wrote: > > On 6/2/25 5:13 AM, Iain Sandoe wrote: > > Tested on x86_64-darwin, OK for trunk? > > thanks > > Iain > > > > --- 8< --- > > > > Using lookup_template_class () directly on the coroutine_handle identifier > > fails in the reported test because

Re: [PATCH] c++,coroutines: Lookup coroutine_handle template [PR120495].

2025-06-02 Thread Jason Merrill
On 6/2/25 5:13 AM, Iain Sandoe wrote: Tested on x86_64-darwin, OK for trunk? thanks Iain --- 8< --- Using lookup_template_class () directly on the coroutine_handle identifier fails in the reported test because the using TYPE_DECL is found. Hmm, this seems like a longstanding (since the implem

[PATCH] c++,coroutines: Lookup coroutine_handle template [PR120495].

2025-06-02 Thread Iain Sandoe
Tested on x86_64-darwin, OK for trunk? thanks Iain --- 8< --- Using lookup_template_class () directly on the coroutine_handle identifier fails in the reported test because the using TYPE_DECL is found. Fix this by looking up the std::coroutine_handle template specifically and then instantiating