Re: [PATCH] c++, coroutines: Handle unevaluated contexts.

2025-06-16 Thread Jason Merrill
On 6/14/25 8:19 AM, Iain Sandoe wrote: Hi Jason, It seems that we had not been marking typeid expressions as unevaluated so that is also added here. This seems to be https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68604 But only some typeid expressions are unevaluated; the https://eel.is/c+

[PATCH] c++, coroutines: Handle unevaluated contexts.

2025-06-14 Thread Iain Sandoe
Hi Jason, >>It seems that we had not been marking typeid expressions as unevaluated >>so that is also added here. >This seems to be https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68604 >But only some typeid expressions are unevaluated; the >https://eel.is/c++draft/expr#typeid-4 case (polymorphic

Re: [PATCH] c++, coroutines: Handle unevaluated contexts

2025-06-11 Thread Jason Merrill
On 6/9/25 4:06 PM, Iain Sandoe wrote: Tested on x86_64-darwin, powerpc64le-linux, OK for trunk? thanks Iain --- 8< -- From [expr.await]/2 We should not accept co_await, co_yield in unevaluated contexts. It seems that we had not been marking typeid expressions as unevaluated so that is also a

[PATCH] c++, coroutines: Handle unevaluated contexts

2025-06-09 Thread Iain Sandoe
Tested on x86_64-darwin, powerpc64le-linux, OK for trunk? thanks Iain --- 8< -- >From [expr.await]/2 We should not accept co_await, co_yield in unevaluated contexts. It seems that we had not been marking typeid expressions as unevaluated so that is also added here. gcc/cp/ChangeLog: *