Re: [PATCH] c++: do_class_deduction and dependent init [PR93383]

2021-04-26 Thread Jason Merrill via Gcc-patches
On 4/26/21 9:29 AM, Patrick Palka wrote: On Fri, 23 Apr 2021, Jason Merrill wrote: On 4/22/21 9:46 AM, Patrick Palka wrote: On Wed, 21 Apr 2021, Patrick Palka wrote: On Wed, 21 Apr 2021, Jason Merrill wrote: On 4/12/21 1:20 PM, Patrick Palka wrote: Here we're crashing during deduction for

Re: [PATCH] c++: do_class_deduction and dependent init [PR93383]

2021-04-26 Thread Patrick Palka via Gcc-patches
On Fri, 23 Apr 2021, Jason Merrill wrote: > On 4/22/21 9:46 AM, Patrick Palka wrote: > > On Wed, 21 Apr 2021, Patrick Palka wrote: > > > > > On Wed, 21 Apr 2021, Jason Merrill wrote: > > > > > > > On 4/12/21 1:20 PM, Patrick Palka wrote: > > > > > Here we're crashing during deduction for a templ

Re: [PATCH] c++: do_class_deduction and dependent init [PR93383]

2021-04-23 Thread Jason Merrill via Gcc-patches
On 4/22/21 9:46 AM, Patrick Palka wrote: On Wed, 21 Apr 2021, Patrick Palka wrote: On Wed, 21 Apr 2021, Jason Merrill wrote: On 4/12/21 1:20 PM, Patrick Palka wrote: Here we're crashing during deduction for a template placeholder from a dependent initializer because one of the initializer's

Re: [PATCH] c++: do_class_deduction and dependent init [PR93383]

2021-04-22 Thread Patrick Palka via Gcc-patches
On Wed, 21 Apr 2021, Patrick Palka wrote: > On Wed, 21 Apr 2021, Jason Merrill wrote: > > > On 4/12/21 1:20 PM, Patrick Palka wrote: > > > Here we're crashing during deduction for a template placeholder from a > > > dependent initializer because one of the initializer's elements has an > > > empt

Re: [PATCH] c++: do_class_deduction and dependent init [PR93383]

2021-04-21 Thread Patrick Palka via Gcc-patches
On Wed, 21 Apr 2021, Jason Merrill wrote: > On 4/12/21 1:20 PM, Patrick Palka wrote: > > Here we're crashing during deduction for a template placeholder from a > > dependent initializer because one of the initializer's elements has an > > empty TREE_TYPE, something which resolve_args and later uni

Re: [PATCH] c++: do_class_deduction and dependent init [PR93383]

2021-04-21 Thread Jason Merrill via Gcc-patches
On 4/12/21 1:20 PM, Patrick Palka wrote: Here we're crashing during deduction for a template placeholder from a dependent initializer because one of the initializer's elements has an empty TREE_TYPE, something which resolve_args and later unify_one_argument don't expect. And if the deduction fro

Re: [PATCH] c++: do_class_deduction and dependent init [PR93383]

2021-04-21 Thread Patrick Palka via Gcc-patches
On Mon, 12 Apr 2021, Patrick Palka wrote: > Here we're crashing during deduction for a template placeholder from a > dependent initializer because one of the initializer's elements has an > empty TREE_TYPE, something which resolve_args and later unify_one_argument > don't expect. And if the deduc

[PATCH] c++: do_class_deduction and dependent init [PR93383]

2021-04-12 Thread Patrick Palka via Gcc-patches
Here we're crashing during deduction for a template placeholder from a dependent initializer because one of the initializer's elements has an empty TREE_TYPE, something which resolve_args and later unify_one_argument don't expect. And if the deduction from a dependent initializer otherwise fails,