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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Reference to an “auto”      |static class member
                   |function as a template      |function returning auto is
                   |parameter                   |not assignable to a
                   |                            |function type reference
   Last reconfirmed|2021-08-04 00:00:00         |2024-4-4

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced slightly more:
```
template <int>
struct Foo {
    static auto value() {}
};
void (&a)() = Foo<1>::value;
```

Note function pointers work.

Reply via email to