Re: [PATCH 2/2] c++: duplicate "use of deleted fn" diagnostic [PR106880]

2023-03-29 Thread Jason Merrill via Gcc-patches
On 3/23/23 17:18, Patrick Palka wrote: Here we're issuing a duplicate diagnostic for the use of the deleted foo, first from the CALL_EXPR case of tsubst_copy_and_build (which doesn't exit early upon failure), and again from from build_over_call when rebuilding the substituted CALL_EXPR. We can f

[PATCH 2/2] c++: duplicate "use of deleted fn" diagnostic [PR106880]

2023-03-23 Thread Patrick Palka via Gcc-patches
Here we're issuing a duplicate diagnostic for the use of the deleted foo, first from the CALL_EXPR case of tsubst_copy_and_build (which doesn't exit early upon failure), and again from from build_over_call when rebuilding the substituted CALL_EXPR. We can fix this by exiting early upon failure of