Re: [PATCH] c++: alias CTAD and aggregate deduction cand [PR98832]

2021-06-24 Thread Jason Merrill via Gcc-patches
On 6/24/21 11:15 AM, Patrick Palka wrote: During alias CTAD, we're accidentally ignoring the aggregate deduction candidate of the underlying template because it's added to the candidate set separately via maybe_aggr_guide (which doesn't yet handle alias templates) rather than via deduction_guides

[PATCH] c++: alias CTAD and aggregate deduction cand [PR98832]

2021-06-24 Thread Patrick Palka via Gcc-patches
During alias CTAD, we're accidentally ignoring the aggregate deduction candidate of the underlying template because it's added to the candidate set separately via maybe_aggr_guide (which doesn't yet handle alias templates) rather than via deduction_guides_for (which does). This patch makes maybe_a