https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124026

Iain Buclaw <ibuclaw at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2026-02-08
      Known to fail|                            |13.1.0
             Status|UNCONFIRMED                 |ASSIGNED
                 CC|                            |ibuclaw at gcc dot gnu.org

--- Comment #1 from Iain Buclaw <ibuclaw at gcc dot gnu.org> ---
Confirmed.

```
static NameAttribute getNamedAttribute(alias S)()
{
    return __traits(getAttributes, S)[0];
}
```

Gets generated as
```
struct NameAttribute getNamedAttribute ()
{
  return <retval> = {.foo=(struct delegate) __lambda_L13_C20};
}
```

Implicit conversion from function pointer to delegate is not a nop cast.

Also affects gdc-13

https://compiler-explorer.com/z/8a3Ghq8MY

Reply via email to