https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120532
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2025-06-09
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Slight more reduced:
```
template <class _Tp>
struct s1 {
static _Tp* _S_fun(_Tp& __r) noexcept;
static void _S_fun(_Tp&&) = delete;
template<typename _Up, typename = decltype(s1::_S_fun(_Up{}))>
s1(_Up&&);
};
using my_func = void(int) &&;
s1<my_func> b;
```