Re: [PATCH] c++: mark_used and ADL with template-id [PR100344]

2021-05-03 Thread Jason Merrill via Gcc-patches
On 4/30/21 2:53 PM, Patrick Palka wrote: My r11-295 patch for PR68942 didn't consider that the callee of an ADL-eligible function call can be a TEMPLATE_ID_EXPR, and we don't want to disable mark_used when substituting into the template arguments of this TEMPLATE_ID_EXPR because the arguments are

[PATCH] c++: mark_used and ADL with template-id [PR100344]

2021-04-30 Thread Patrick Palka via Gcc-patches
My r11-295 patch for PR68942 didn't consider that the callee of an ADL-eligible function call can be a TEMPLATE_ID_EXPR, and we don't want to disable mark_used when substituting into the template arguments of this TEMPLATE_ID_EXPR because the arguments are clearly used regardless of the outcome of