Re: [pushed] c++: lambda in requires outside template [PR99546]

2025-04-08 Thread Patrick Palka
On Fri, 4 Apr 2025, Jason Merrill wrote: > Tested x86_64-pc-linux-gnu, applying to trunk. > > -- 8< -- > > Since r10-7441 we set processing_template_decl in a requires-expression so > that we can use tsubst_expr to evaluate the requirements, but that confuses > lambdas terribly; begin_lambda_typ

Re: [pushed] c++: lambda in requires outside template [PR99546]

2025-04-05 Thread Patrick Palka
On Fri, 4 Apr 2025, Patrick Palka wrote: > On Fri, 4 Apr 2025, Jason Merrill wrote: > > > On 4/4/25 4:35 PM, Patrick Palka wrote: > > > On Fri, 4 Apr 2025, Jason Merrill wrote: > > > > > > > Tested x86_64-pc-linux-gnu, applying to trunk. > > > > > > > > -- 8< -- > > > > > > > > Since r10-7441

Re: [pushed] c++: lambda in requires outside template [PR99546]

2025-04-04 Thread Patrick Palka
On Fri, 4 Apr 2025, Jason Merrill wrote: > On 4/4/25 4:35 PM, Patrick Palka wrote: > > On Fri, 4 Apr 2025, Jason Merrill wrote: > > > > > Tested x86_64-pc-linux-gnu, applying to trunk. > > > > > > -- 8< -- > > > > > > Since r10-7441 we set processing_template_decl in a requires-expression so >

Re: [pushed] c++: lambda in requires outside template [PR99546]

2025-04-04 Thread Jason Merrill
On 4/4/25 4:35 PM, Patrick Palka wrote: On Fri, 4 Apr 2025, Jason Merrill wrote: Tested x86_64-pc-linux-gnu, applying to trunk. -- 8< -- Since r10-7441 we set processing_template_decl in a requires-expression so that we can use tsubst_expr to evaluate the requirements, but that confuses lambd

Re: [pushed] c++: lambda in requires outside template [PR99546]

2025-04-04 Thread Patrick Palka
On Fri, 4 Apr 2025, Jason Merrill wrote: > Tested x86_64-pc-linux-gnu, applying to trunk. > > -- 8< -- > > Since r10-7441 we set processing_template_decl in a requires-expression so > that we can use tsubst_expr to evaluate the requirements, but that confuses > lambdas terribly; begin_lambda_typ

[pushed] c++: lambda in requires outside template [PR99546]

2025-04-04 Thread Jason Merrill
Tested x86_64-pc-linux-gnu, applying to trunk. -- 8< -- Since r10-7441 we set processing_template_decl in a requires-expression so that we can use tsubst_expr to evaluate the requirements, but that confuses lambdas terribly; begin_lambda_type silently returns error_mark_node and we continue into