[PATCH] coroutines, c++: Find lambda-ness from the ramp function [PR 96517].

Jason Merrill jason@redhat.com
Fri Nov 5 20:50:05 GMT 2021


On 11/5/21 12:01, Iain Sandoe wrote:
> +	      || (DECL_DECLARES_FUNCTION_P (DECL_CONTEXT (decl))
> +		  && DECL_COROUTINE_P (DECL_CONTEXT (decl))
> +		  && DECL_RAMP_FN (DECL_CONTEXT (decl))
> +		  && LAMBDA_FUNCTION_P (DECL_RAMP_FN (DECL_CONTEXT (decl))))));

Are there other places that want to look through DECL_RAMP_FN like this, 
such that this should be factored into e.g.

LAMBDA_FUNCTION_P (non_coroutine (DECL_CONTEXT (decl)))

?

Jason



More information about the Gcc-patches mailing list