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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2025-01-07
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed. Looks like it is lambda related only.

That is the following C++20 code is accepted correctly:
```
struct A {   
    A(const A&) = delete;
};

void f11(auto){}

void (*fptr)(A) = f11;
```

Note it is not just auto, but all templated lambdas too:
```
struct A {   
    A(const A&) = delete;
};

void (*fptr)(A) = []<typename T>(T) {};

```

Reply via email to