Re: [PATCH] c++: Fix CTAD from single-element initializer list [PR99103]

2021-02-25 Thread Jason Merrill via Gcc-patches
On 2/15/21 2:30 PM, Patrick Palka wrote: When determining whether to rule out initializer-list constructors during CTAD with a single-element initializer list, the element type's cv-qualifiers should be irrelevant. This patch fixes this by making is_spec_or_derived strip cv-qualifiers from the s

[PATCH] c++: Fix CTAD from single-element initializer list [PR99103]

2021-02-15 Thread Patrick Palka via Gcc-patches
When determining whether to rule out initializer-list constructors during CTAD with a single-element initializer list, the element type's cv-qualifiers should be irrelevant. This patch fixes this by making is_spec_or_derived strip cv-qualifiers from the supplied expression type. In passing, I not