Re: [PATCH RFC] c++: bad pending_template recursion

2025-04-25 Thread Patrick Palka
On Fri, 18 Apr 2025, Jason Merrill wrote: > limit_bad_template_recursion currently avoids immediate instantiation of > templates from uses in an already ill-formed instantiation, but we still can > get unnecessary recursive instantiation in pending_templates if the > instantiation was queued befor

Re: [PATCH RFC] c++: bad pending_template recursion

2025-04-25 Thread Jonathan Wakely
On Thu, 24 Apr 2025 at 15:48, Jonathan Wakely wrote: > > On Fri, 18 Apr 2025 at 23:08, Jason Merrill wrote: > > > > limit_bad_template_recursion currently avoids immediate instantiation of > > templates from uses in an already ill-formed instantiation, but we still can > > get unnecessary recursi

Re: [PATCH RFC] c++: bad pending_template recursion

2025-04-24 Thread Jonathan Wakely
On Fri, 18 Apr 2025 at 23:08, Jason Merrill wrote: > > limit_bad_template_recursion currently avoids immediate instantiation of > templates from uses in an already ill-formed instantiation, but we still can > get unnecessary recursive instantiation in pending_templates if the > instantiation was q

Re: [PATCH RFC] c++: bad pending_template recursion

2025-04-18 Thread Jonathan Wakely
On Fri, 18 Apr 2025 at 23:08, Jason Merrill wrote: > > limit_bad_template_recursion currently avoids immediate instantiation of > templates from uses in an already ill-formed instantiation, but we still can > get unnecessary recursive instantiation in pending_templates if the > instantiation was q