Re: [PATCH] c++: ICE on loopy var tmpl auto deduction [PR109300]

2023-04-03 Thread Jason Merrill via Gcc-patches
On 4/3/23 12:28, Patrick Palka wrote: On Wed, 29 Mar 2023, Jason Merrill wrote: On 3/28/23 13:37, Patrick Palka wrote: Now that we resolve non-dependent variable template-ids ahead of time, cp_finish_decl needs to handle a new invalid situation: we can end up trying to instantiate a variable t

Re: [PATCH] c++: ICE on loopy var tmpl auto deduction [PR109300]

2023-04-03 Thread Patrick Palka via Gcc-patches
On Wed, 29 Mar 2023, Jason Merrill wrote: > On 3/28/23 13:37, Patrick Palka wrote: > > Now that we resolve non-dependent variable template-ids ahead of time, > > cp_finish_decl needs to handle a new invalid situation: we can end up > > trying to instantiate a variable template with deduced return

Re: [PATCH] c++: ICE on loopy var tmpl auto deduction [PR109300]

2023-03-29 Thread Jason Merrill via Gcc-patches
On 3/28/23 13:37, Patrick Palka wrote: Now that we resolve non-dependent variable template-ids ahead of time, cp_finish_decl needs to handle a new invalid situation: we can end up trying to instantiate a variable template with deduced return type before we fully parsed (and attached) its initiali

[PATCH] c++: ICE on loopy var tmpl auto deduction [PR109300]

2023-03-28 Thread Patrick Palka via Gcc-patches
Now that we resolve non-dependent variable template-ids ahead of time, cp_finish_decl needs to handle a new invalid situation: we can end up trying to instantiate a variable template with deduced return type before we fully parsed (and attached) its initializer. Bootstrapped and regtested on x86_6