Re: [PATCH] c++: Fix up user_provided_p [PR81349]

2020-03-25 Thread Jason Merrill via Gcc-patches
On 3/25/20 3:29 PM, Jakub Jelinek wrote: Hi! The standard says: "A function is user-provided if it is user-declared and not explicitly defaulted or deleted on its first declaration." I don't see anything about function templates having different rules here, but user_provided_p does return true

[PATCH] c++: Fix up user_provided_p [PR81349]

2020-03-25 Thread Jakub Jelinek via Gcc-patches
Hi! The standard says: "A function is user-provided if it is user-declared and not explicitly defaulted or deleted on its first declaration." I don't see anything about function templates having different rules here, but user_provided_p does return true for all TEMPLATE_DECLs. The following