[PATCH 3/9] c++: C++26 Reflection [PR120775]

Jason Merrill jason@redhat.com
Thu Dec 18 03:47:12 GMT 2025


On 12/18/25 2:41 AM, Jakub Jelinek wrote:
> On Tue, Dec 16, 2025 at 10:48:40PM +0700, Jason Merrill wrote:
>>> +/* Process std::meta::is_deleted.
>>> +   Returns: true if r represents a function that is deleted.
>>> +   Otherwise, false.  */
>>> +
>>> +static tree
>>> +eval_is_deleted (tree r)
>>> +{
>>> +  r = maybe_get_reflection_fndecl (r);
>>> +  if (TREE_CODE (r) == FUNCTION_DECL && DECL_DELETED_FN (r))
>>
>> Is there no way to ask this about function templates?
> 
> https://eel.is/c++draft/meta.reflection#queries-15
> says just function, not function template, so that would need
> a CWG to change that, right?

I'd think LWG.

Jason



More information about the Gcc-patches mailing list