https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125952
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Shorter:
using U = void(&)(this int);
We also fail to reject
struct S {
void (*f)(this S&);
void (&r)(this S&);
};
mpolacek at gcc dot gnu.org via Gcc-bugs Tue, 23 Jun 2026 08:57:11 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125952
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Shorter:
using U = void(&)(this int);
We also fail to reject
struct S {
void (*f)(this S&);
void (&r)(this S&);
};