Re: [PATCH] c++: Refine check for CTAD placeholder [PR99586]

2021-04-01 Thread Jason Merrill via Gcc-patches
On 4/1/21 10:30 AM, Patrick Palka wrote: In the below testcase, during finish_compound_literal for A{}, type_uses_auto finds and returns the CTAD placeholder for B{V}, which tricks us into attempting CTAD on A{} and leads to bogus errors. AFAICT 'type' will always be a bare 'auto' in the CTAD ca

[PATCH] c++: Refine check for CTAD placeholder [PR99586]

2021-04-01 Thread Patrick Palka via Gcc-patches
In the below testcase, during finish_compound_literal for A{}, type_uses_auto finds and returns the CTAD placeholder for B{V}, which tricks us into attempting CTAD on A{} and leads to bogus errors. AFAICT 'type' will always be a bare 'auto' in the CTAD case, so we don't need to look deeply to find